2024-10-11 20:50:45 +00:00
|
|
|
# Maintainer: Xavier Moffett (sapphirus at azorium dot net)
|
2024-02-19 20:46:47 +00:00
|
|
|
# Contributor: Mikael Eriksson <mikael_eriksson@miffe.org>
|
2023-02-18 12:08:58 +00:00
|
|
|
|
2022-09-24 02:12:18 +00:00
|
|
|
_pkgbase=ocp
|
2023-02-18 11:56:57 +00:00
|
|
|
pkgname=('ocp' 'ocp-sdl2')
|
2024-04-04 21:30:17 +00:00
|
|
|
pkgver=0.2.109
|
2024-10-11 20:50:45 +00:00
|
|
|
pkgrel=2
|
2023-02-18 12:13:02 +00:00
|
|
|
pkgdesc="Open Cubic Player"
|
2015-06-08 13:54:40 +00:00
|
|
|
arch=('i686' 'x86_64')
|
2022-09-23 16:47:02 +00:00
|
|
|
url="https://stian.cubic.org/project-ocp.php"
|
2015-06-08 13:54:40 +00:00
|
|
|
license=('GPL')
|
2023-02-18 11:56:57 +00:00
|
|
|
|
2023-05-12 00:16:39 +00:00
|
|
|
source=(${_pkgbase}::git+https://github.com/mywave82/opencubicplayer.git#tag=v${pkgver})
|
|
|
|
sha256sums=('SKIP')
|
|
|
|
|
2023-02-18 11:56:57 +00:00
|
|
|
optdepends=('libvorbis: Vorbis codec support'
|
2024-10-11 22:14:24 +00:00
|
|
|
'libmad: MPEG codec support'
|
|
|
|
'flac: FLAC codec support'
|
|
|
|
'libgme: Video game music emulation/playback support')
|
2022-09-23 16:47:02 +00:00
|
|
|
|
2023-02-18 13:34:24 +00:00
|
|
|
makedepends=('alsa-lib'
|
2024-10-11 22:14:24 +00:00
|
|
|
'cjson'
|
|
|
|
'desktop-file-utils'
|
|
|
|
'freetype2'
|
|
|
|
'flac'
|
|
|
|
'git'
|
|
|
|
'ncurses'
|
|
|
|
'sdl2'
|
|
|
|
'xa'
|
|
|
|
'libgme'
|
|
|
|
'libancient'
|
|
|
|
'libdiscid'
|
|
|
|
'libmad'
|
|
|
|
'libjpeg-turbo'
|
|
|
|
'libpng'
|
|
|
|
'libvorbis')
|
2022-09-23 16:47:02 +00:00
|
|
|
|
2020-02-05 18:53:22 +00:00
|
|
|
prepare() {
|
2024-10-11 22:14:24 +00:00
|
|
|
cd $_pkgbase
|
|
|
|
git submodule init
|
|
|
|
git submodule update --init --recursive
|
2020-02-05 18:53:22 +00:00
|
|
|
}
|
2015-06-08 13:54:40 +00:00
|
|
|
|
|
|
|
build() {
|
2024-10-11 22:14:24 +00: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
|
2023-02-18 11:56:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package_ocp-sdl2() {
|
2024-10-11 22:14:24 +00: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 13:54:40 +00:00
|
|
|
}
|
|
|
|
|
2023-02-18 11:56:57 +00:00
|
|
|
package_ocp() {
|
2024-10-11 22:14:24 +00: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 13:54:40 +00:00
|
|
|
}
|
2024-10-11 22:14:24 +00:00
|
|
|
|
|
|
|
# vim:set ts=4 sw=4 et:1
|