Template
1
0
Fork 0
mirror of https://aur.archlinux.org/ocp-git.git synced 2024-11-25 05:36:29 +00:00
ocp-git/PKGBUILD

111 lines
3.2 KiB
Text
Raw Normal View History

# Maintainer: Xavier (sapphirus at azorium dot net)
# Original Maintainer: Ossi Saukko <osaukko at gmail dot com>
_pkgbase=ocp
2023-02-18 11:59:44 +00:00
pkgname=('ocp-git' 'ocp-sdl2-git')
pkgver=0.2.102.r25.be056b7
pkgrel=2
pkgdesc="Open Cubic Player (GIT Version)"
2015-09-09 13:51:44 +00:00
arch=('i686' 'x86_64')
url="https://stian.cubic.org/project-ocp.php"
2015-09-09 13:51:44 +00:00
license=('GPL')
2023-02-18 11:59:44 +00:00
optdepends=('libvorbis: Vorbis codec support'
'libmad: MPEG codec support'
'flac: FLAC codec support')
makedepends=('alsa-libs'
'cjson'
2023-02-18 11:59:44 +00:00
'desktop-file-utils'
'freetype2'
2023-02-18 11:59:44 +00:00
'flac'
'git'
'ncurses'
'sdl2'
'xa'
2023-02-18 11:59:44 +00:00
'libancient'
'libdiscid'
'libmad'
'libjpeg-turbo'
'libpng'
'libvorbis'
'ttf-unifont')
2015-09-09 13:51:44 +00:00
2023-02-18 11:59:44 +00:00
source=(${_pkgbase}::git+https://github.com/mywave82/opencubicplayer.git)
sha256sums=('SKIP')
2015-09-09 13:51:44 +00:00
pkgver() {
cd $_pkgbase
echo "$(git describe --tags | sed 's/^v//; s/-/.r/; s/-g/./')"
}
prepare() {
2023-02-18 11:59:44 +00:00
echo -e "\033[1;31m##!! NOTICE !!##\033[0m"
2023-02-18 12:22:45 +00:00
echo -e "\033[0;33mStarting with ocp 0.2.103, the ocp-git package has been split into two meta packages."
2023-02-18 11:59:44 +00:00
echo "Depending upon which features you use, no action will need to be taken."
echo -e "X11/SDL2 functionality is now provided by the ocp-sdl2-git meta package.\033[0m"
echo "Thanks for flying ocp-git in the AUR! :)"
cd $_pkgbase
git submodule init
git submodule update --init --recursive
2015-09-09 13:51:44 +00:00
}
build() {
cd $_pkgbase
2023-02-18 11:59:44 +00:00
./configure --prefix=/usr --sysconfdir=/etc --with-builtin=core\
--without-update-desktop-database\
--without-update-mime-database\
--with-unifontdir=/usr/share/fonts/Unifont\
--with-unifont-ttf=/usr/share/fonts/Unifont/Unifont.ttf\
--with-unifont-csur-ttf=/usr/share/fonts/Unifont/Unifont_CSUR.ttf\
--with-unifont-upper-ttf=/usr/share/fonts/Unifont/Unifont_Upper.ttf
make subdirs ocp ocp.hlp DESTDIR="$pkgdir"
}
package_ocp-sdl2-git() {
provides=(${_pkgbase}-sdl2=${pkgver})
conflicts=('ocp' 'ocp-curses')
install=${_pkgbase}.install
depends=('alsa-lib'
'cjson'
'freetype2'
'hicolor-icon-theme'
'ncurses'
2023-02-18 11:59:44 +00:00
'sdl2'
'shared-mime-info'
'libancient'
'libdiscid'
'libjpeg-turbo'
'libpng'
'ttf-unifont')
2023-02-18 11:59:44 +00:00
cd $_pkgbase
./configure --prefix=/usr --sysconfdir=/etc --with-builtin=core\
--without-update-desktop-database\
--without-update-mime-database\
--with-unifontdir=/usr/share/fonts/Unifont\
--with-unifont-ttf=/usr/share/fonts/Unifont/Unifont.ttf\
--with-unifont-csur-ttf=/usr/share/fonts/Unifont/Unifont_CSUR.ttf\
--with-unifont-upper-ttf=/usr/share/fonts/Unifont/Unifont_Upper.ttf
make DESTDIR="$pkgdir" libocp.so
make DESTDIR="$pkgdir" install
2015-09-09 13:51:44 +00:00
}
2023-02-18 11:59:44 +00:00
package_ocp-git() {
provides=(${_pkgbase}=${pkgver}
${_pkgbase}-curses=${pkgver})
conflicts=('ocp-curses' 'ocp-sdl2')
depends=('alsa-lib'
'cjson'
'ncurses'
2023-02-18 11:59:44 +00:00
'libancient'
'libdiscid')
cd $_pkgbase
./configure --prefix=/usr --sysconfdir=/etc --with-builtin=core\
2023-02-18 11:59:44 +00:00
--without-x11 --without-sdl2\
--without-update-desktop-database\
--without-update-mime-database
make DESTDIR="$pkgdir" libocp.so
make DESTDIR="$pkgdir" install
2015-09-09 13:51:44 +00:00
}