1
0
Fork 0
mirror of https://aur.archlinux.org/ocp.git synced 2024-12-27 22:46:55 -05:00
ocp/PKGBUILD

105 lines
3.1 KiB
Text
Raw Normal View History

# Maintainer: Xavier Moffett (sapphirus at azorium dot net)
2024-02-19 15:46:47 -05:00
# Contributor: Mikael Eriksson <mikael_eriksson@miffe.org>
2023-02-18 07:08:58 -05:00
_pkgbase=ocp
pkgname=('ocp' 'ocp-sdl2')
2024-04-04 17:30:17 -04:00
pkgver=0.2.109
pkgrel=2
2023-02-18 07:13:02 -05:00
pkgdesc="Open Cubic Player"
2015-06-08 09:54:40 -04:00
arch=('i686' 'x86_64')
url="https://stian.cubic.org/project-ocp.php"
2015-06-08 09:54:40 -04:00
license=('GPL')
2023-05-11 20:16:39 -04:00
source=(${_pkgbase}::git+https://github.com/mywave82/opencubicplayer.git#tag=v${pkgver})
sha256sums=('SKIP')
optdepends=('libvorbis: Vorbis codec support'
2024-10-11 18:14:24 -04:00
'libmad: MPEG codec support'
'flac: FLAC codec support'
'libgme: Video game music emulation/playback support')
2023-02-18 08:34:24 -05:00
makedepends=('alsa-lib'
2024-10-11 18:14:24 -04:00
'cjson'
'desktop-file-utils'
'freetype2'
'flac'
'git'
'ncurses'
'sdl2'
'xa'
'libgme'
'libancient'
'libdiscid'
'libmad'
'libjpeg-turbo'
'libpng'
'libvorbis')
2020-02-05 13:53:22 -05:00
prepare() {
2024-10-11 18:14:24 -04:00
cd $_pkgbase
git submodule init
git submodule update --init --recursive
2020-02-05 13:53:22 -05:00
}
2015-06-08 09:54:40 -04:00
build() {
2024-10-11 18:14:24 -04:00
cd $_pkgbase
./configure --prefix=/usr --sysconfdir=/etc --with-builtin=core cross_compiling=yes\
--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
}
package_ocp-sdl2() {
2024-10-11 18:14:24 -04:00
provides=(${_pkgbase}=${pkgver})
conflicts=('ocp' 'ocp-curses')
install=${_pkgbase}.install
depends=('alsa-lib'
'bzip2'
'cjson'
'freetype2'
'hicolor-icon-theme'
'ncurses'
'sdl2'
'shared-mime-info'
'zlib'
'libancient'
'libdiscid'
'libjpeg-turbo'
'libpng'
'ttf-unifont')
cd $_pkgbase
./configure --prefix=/usr --sysconfdir=/etc --with-builtin=core cross_compiling=yes\
--without-sdl --without-x11\
--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" libocp.so
make DESTDIR="$pkgdir" install
2015-06-08 09:54:40 -04:00
}
package_ocp() {
2024-10-11 18:14:24 -04:00
provides=(${_pkgbase}=${pkgver})
conflicts=('ocp-curses' 'ocp-sdl2')
depends=('alsa-lib'
'bzip2'
'cjson'
'ncurses'
'zlib'
'libancient'
'libdiscid')
cd $_pkgbase
./configure --prefix=/usr --sysconfdir=/etc --with-builtin=core\
--without-x11 --without-sdl --without-sdl2\
--without-update-desktop-database\
--without-update-mime-database
make DESTDIR="$pkgdir" libocp.so
make DESTDIR="$pkgdir" install
2015-06-08 09:54:40 -04:00
}
2024-10-11 18:14:24 -04:00
# vim:set ts=4 sw=4 et:1