Template
1
0
Fork 0
mirror of https://aur.archlinux.org/ocp-git.git synced 2024-12-27 06:26:54 -05:00
ocp-git/PKGBUILD

110 lines
2.9 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 06:59:44 -05:00
pkgname=('ocp-git' 'ocp-sdl2-git')
2024-04-01 19:11:25 -04:00
pkgver=0.2.108.r2.d1fc8df
2023-02-18 08:41:53 -05:00
pkgrel=1
pkgdesc="Open Cubic Player (GIT Version)"
2015-09-09 09:51:44 -04:00
arch=('i686' 'x86_64')
url="https://stian.cubic.org/project-ocp.php"
2015-09-09 09:51:44 -04:00
license=('GPL')
2023-02-18 06:59:44 -05:00
2023-05-20 01:42:18 -04:00
source=(${_pkgbase}::git+https://github.com/mywave82/opencubicplayer.git)
sha256sums=('SKIP')
2023-02-18 06:59:44 -05:00
optdepends=('libvorbis: Vorbis codec support'
'libmad: MPEG codec support'
'flac: FLAC codec support'
'libgme: Video game music emulation/playback support')
2023-02-18 08:35:51 -05:00
makedepends=('alsa-lib'
'cjson'
2023-02-18 06:59:44 -05:00
'desktop-file-utils'
'freetype2'
2023-02-18 06:59:44 -05:00
'flac'
'git'
'ncurses'
'sdl2'
'xa'
'libgme'
2023-02-18 06:59:44 -05:00
'libancient'
'libdiscid'
'libmad'
'libjpeg-turbo'
'libpng'
'libvorbis')
2015-09-09 09:51:44 -04:00
pkgver() {
cd $_pkgbase
echo "$(git describe --tags | sed 's/^v//; s/-/.r/; s/-g/./')"
}
prepare() {
cd $_pkgbase
git submodule init
git submodule update --init --recursive
2015-09-09 09:51:44 -04:00
}
build() {
cd $_pkgbase
./configure --prefix=/usr --sysconfdir=/etc --with-builtin=core cross_compiling=yes\
2023-02-18 06:59:44 -05:00
--without-update-desktop-database\
--without-update-mime-database\
--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" subdirs ocp ocp.hlp
2023-02-18 06:59:44 -05:00
}
package_ocp-sdl2-git() {
provides=(${_pkgbase}=${pkgver}
${_pkgbase}-sdl2=${pkgver})
conflicts=('ocp' 'ocp-sdl2' 'ocp-curses')
2023-02-18 06:59:44 -05:00
install=${_pkgbase}.install
depends=('alsa-lib'
'bzip2'
2023-02-18 06:59:44 -05:00
'cjson'
'freetype2'
'hicolor-icon-theme'
'ncurses'
'sdl2'
2023-02-18 06:59:44 -05:00
'shared-mime-info'
'zlib'
'libancient'
2023-02-18 06:59:44 -05:00
'libdiscid'
'libjpeg-turbo'
'libpng'
'ttf-unifont')
2023-02-18 06:59:44 -05:00
cd $_pkgbase
./configure --prefix=/usr --sysconfdir=/etc --with-builtin=core cross_compiling=yes\
--without-sdl --without-x11\
--without-update-desktop-database\
2023-02-18 06:59:44 -05:00
--without-update-mime-database\
--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 09:51:44 -04:00
}
2023-02-18 06:59:44 -05:00
package_ocp-git() {
provides=(${_pkgbase}=${pkgver}
${_pkgbase}-curses=${pkgver})
conflicts=('ocp-curses' 'ocp-sdl2')
depends=('alsa-lib'
'bzip2'
'cjson'
'ncurses'
'zlib'
2023-02-18 06:59:44 -05:00
'libancient'
'libdiscid')
cd $_pkgbase
./configure --prefix=/usr --sysconfdir=/etc --with-builtin=core\
--without-x11 --without-sdl --without-sdl2\
2023-02-18 06:59:44 -05:00
--without-update-desktop-database\
--without-update-mime-database
make DESTDIR="$pkgdir" libocp.so
make DESTDIR="$pkgdir" install
2015-09-09 09:51:44 -04:00
}