2024-10-11 17:50:23 -04:00
|
|
|
# Maintainer: Xavier Moffett (sapphirus at azorium dot net)
|
|
|
|
# Contributor: Ossi Saukko <osaukko at gmail dot com>
|
2022-09-23 11:37:22 -04:00
|
|
|
|
2022-09-23 22:00:24 -04:00
|
|
|
_pkgbase=ocp
|
2023-02-18 06:59:44 -05:00
|
|
|
pkgname=('ocp-git' 'ocp-sdl2-git')
|
2024-10-11 17:50:23 -04:00
|
|
|
pkgver=0.2.109.r11.c1069f5
|
2023-02-18 08:41:53 -05:00
|
|
|
pkgrel=1
|
2015-09-09 09:56:18 -04:00
|
|
|
pkgdesc="Open Cubic Player (GIT Version)"
|
2015-09-09 09:51:44 -04:00
|
|
|
arch=('i686' 'x86_64')
|
2022-09-23 11:37:22 -04:00
|
|
|
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'
|
2023-07-31 10:39:08 -04:00
|
|
|
'flac: FLAC codec support'
|
|
|
|
'libgme: Video game music emulation/playback support')
|
2022-09-23 11:37:22 -04:00
|
|
|
|
2023-02-18 08:35:51 -05:00
|
|
|
makedepends=('alsa-lib'
|
2023-02-18 08:27:30 -05:00
|
|
|
'cjson'
|
2023-02-18 06:59:44 -05:00
|
|
|
'desktop-file-utils'
|
2023-02-18 08:27:30 -05:00
|
|
|
'freetype2'
|
2023-02-18 06:59:44 -05:00
|
|
|
'flac'
|
2023-02-18 08:27:30 -05:00
|
|
|
'git'
|
|
|
|
'ncurses'
|
|
|
|
'sdl2'
|
|
|
|
'xa'
|
2023-06-10 05:30:34 -04:00
|
|
|
'libgme'
|
2023-02-18 06:59:44 -05:00
|
|
|
'libancient'
|
|
|
|
'libdiscid'
|
|
|
|
'libmad'
|
|
|
|
'libjpeg-turbo'
|
|
|
|
'libpng'
|
2023-02-20 05:52:16 -05:00
|
|
|
'libvorbis')
|
2020-04-19 08:54:12 -04:00
|
|
|
|
2015-09-09 09:51:44 -04:00
|
|
|
pkgver() {
|
2024-10-11 17:50:23 -04:00
|
|
|
cd $_pkgbase
|
2022-09-23 11:37:22 -04:00
|
|
|
echo "$(git describe --tags | sed 's/^v//; s/-/.r/; s/-g/./')"
|
|
|
|
}
|
|
|
|
|
|
|
|
prepare() {
|
2024-10-11 17:50:23 -04:00
|
|
|
cd $_pkgbase
|
2022-09-23 11:37:22 -04:00
|
|
|
git submodule init
|
|
|
|
git submodule update --init --recursive
|
2015-09-09 09:51:44 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2022-09-23 22:00:24 -04:00
|
|
|
cd $_pkgbase
|
2023-02-20 05:52:16 -05:00
|
|
|
./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
|
2023-02-18 11:19:01 -05:00
|
|
|
make DESTDIR="$pkgdir" subdirs ocp ocp.hlp
|
2023-02-18 06:59:44 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
package_ocp-sdl2-git() {
|
2024-10-11 17:50:23 -04:00
|
|
|
provides=(${_pkgbase}=${pkgver})
|
|
|
|
conflicts=('ocp' 'ocp-curses')
|
2023-02-18 06:59:44 -05:00
|
|
|
install=${_pkgbase}.install
|
|
|
|
depends=('alsa-lib'
|
2023-02-18 11:19:01 -05:00
|
|
|
'bzip2'
|
2023-02-18 06:59:44 -05:00
|
|
|
'cjson'
|
|
|
|
'freetype2'
|
|
|
|
'hicolor-icon-theme'
|
2023-02-18 08:27:30 -05:00
|
|
|
'ncurses'
|
2023-06-10 05:30:34 -04:00
|
|
|
'sdl2'
|
2023-02-18 06:59:44 -05:00
|
|
|
'shared-mime-info'
|
2023-02-18 11:19:01 -05:00
|
|
|
'zlib'
|
|
|
|
'libancient'
|
2023-02-18 06:59:44 -05:00
|
|
|
'libdiscid'
|
|
|
|
'libjpeg-turbo'
|
2023-02-18 08:27:30 -05:00
|
|
|
'libpng'
|
|
|
|
'ttf-unifont')
|
2023-02-18 06:59:44 -05:00
|
|
|
cd $_pkgbase
|
2023-02-20 05:52:16 -05:00
|
|
|
./configure --prefix=/usr --sysconfdir=/etc --with-builtin=core cross_compiling=yes\
|
2023-02-22 02:12:56 -05:00
|
|
|
--without-sdl --without-x11\
|
2023-02-20 08:06:38 -05:00
|
|
|
--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() {
|
2024-10-11 17:50:23 -04:00
|
|
|
provides=(${_pkgbase}=${pkgver})
|
|
|
|
conflicts=('ocp' 'ocp-curses')
|
2023-02-18 11:19:01 -05:00
|
|
|
depends=('alsa-lib'
|
2023-06-10 05:30:34 -04:00
|
|
|
'bzip2'
|
|
|
|
'cjson'
|
2023-02-18 08:27:30 -05:00
|
|
|
'ncurses'
|
2023-02-18 11:19:01 -05:00
|
|
|
'zlib'
|
2023-02-18 06:59:44 -05:00
|
|
|
'libancient'
|
|
|
|
'libdiscid')
|
2022-09-23 22:00:24 -04:00
|
|
|
cd $_pkgbase
|
2023-02-20 08:14:05 -05:00
|
|
|
./configure --prefix=/usr --sysconfdir=/etc --with-builtin=core\
|
2023-02-20 07:48:34 -05:00
|
|
|
--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
|
2022-09-23 11:37:22 -04:00
|
|
|
make DESTDIR="$pkgdir" install
|
2015-09-09 09:51:44 -04:00
|
|
|
}
|