2022-09-23 16:47:02 +00:00
|
|
|
# Maintainer: Xavier (sapphirus at azorium dot net)
|
2023-02-18 12:08:58 +00:00
|
|
|
# Original Contributor: Mikael Eriksson <mikael_eriksson@miffe.org>
|
|
|
|
|
2022-09-24 02:12:18 +00:00
|
|
|
_pkgbase=ocp
|
2023-02-18 11:56:57 +00:00
|
|
|
pkgname=('ocp' 'ocp-sdl2')
|
|
|
|
pkgver=0.2.103
|
2023-02-18 16:15:40 +00:00
|
|
|
pkgrel=3
|
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
|
|
|
|
|
|
|
optdepends=('libvorbis: Vorbis codec support'
|
|
|
|
'libmad: MPEG codec support'
|
|
|
|
'flac: FLAC codec support')
|
2022-09-23 16:47:02 +00:00
|
|
|
|
2023-02-18 13:34:24 +00:00
|
|
|
makedepends=('alsa-lib'
|
2023-02-18 13:28:49 +00:00
|
|
|
'cjson'
|
2023-02-18 11:56:57 +00:00
|
|
|
'desktop-file-utils'
|
2023-02-18 13:28:49 +00:00
|
|
|
'freetype2'
|
2023-02-18 11:56:57 +00:00
|
|
|
'flac'
|
2023-02-18 13:28:49 +00:00
|
|
|
'git'
|
|
|
|
'ncurses'
|
|
|
|
'sdl2'
|
|
|
|
'xa'
|
2023-02-18 11:56:57 +00:00
|
|
|
'libancient'
|
|
|
|
'libdiscid'
|
|
|
|
'libmad'
|
|
|
|
'libjpeg-turbo'
|
|
|
|
'libpng'
|
|
|
|
'libvorbis'
|
|
|
|
'ttf-unifont')
|
2022-09-23 16:47:02 +00:00
|
|
|
|
2022-09-24 02:12:18 +00:00
|
|
|
source=(${_pkgbase}::git+https://github.com/mywave82/opencubicplayer.git#tag=v${pkgver})
|
2023-02-18 11:56:57 +00:00
|
|
|
sha256sums=('SKIP')
|
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd $_pkgbase
|
|
|
|
echo "$(git describe --tags | sed 's/^v//; s/-/.r/; s/-g/./')"
|
|
|
|
}
|
2020-02-05 18:53:22 +00:00
|
|
|
|
|
|
|
prepare() {
|
2023-02-18 11:56:57 +00:00
|
|
|
echo -e "\033[1;31m##!! NOTICE !!##\033[0m"
|
|
|
|
echo -e "\033[0;33mStarting with ocp 0.2.103, the ocp package has been split into two meta packages."
|
|
|
|
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 meta package.\033[0m"
|
|
|
|
echo "Thanks for flying ocp in the AUR! :)"
|
2022-09-24 02:12:18 +00:00
|
|
|
cd $_pkgbase
|
2020-02-05 18:53:22 +00:00
|
|
|
git submodule init
|
2023-02-18 11:56:57 +00:00
|
|
|
git submodule update --init --recursive
|
2020-02-05 18:53:22 +00:00
|
|
|
}
|
2015-06-08 13:54:40 +00:00
|
|
|
|
|
|
|
build() {
|
2022-09-24 02:12:18 +00:00
|
|
|
cd $_pkgbase
|
2023-02-18 11:56:57 +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
|
2023-02-18 16:15:40 +00:00
|
|
|
make DESTDIR="$pkgdir" subdirs ocp ocp.hlp
|
2023-02-18 11:56:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package_ocp-sdl2() {
|
|
|
|
provides=(${_pkgbase}-sdl2=${pkgver})
|
|
|
|
conflicts=('ocp' 'ocp-curses')
|
|
|
|
install=${_pkgbase}.install
|
|
|
|
depends=('alsa-lib'
|
2023-02-18 16:15:40 +00:00
|
|
|
'bizp2'
|
2023-02-18 11:56:57 +00:00
|
|
|
'cjson'
|
|
|
|
'freetype2'
|
|
|
|
'hicolor-icon-theme'
|
2023-02-18 13:28:49 +00:00
|
|
|
'ncurses'
|
2023-02-18 11:56:57 +00:00
|
|
|
'sdl2'
|
|
|
|
'shared-mime-info'
|
2023-02-18 16:15:40 +00:00
|
|
|
'zlib'
|
|
|
|
'libancient'
|
2023-02-18 11:56:57 +00:00
|
|
|
'libdiscid'
|
|
|
|
'libjpeg-turbo'
|
2023-02-18 13:28:49 +00:00
|
|
|
'libpng'
|
|
|
|
'ttf-unifont')
|
2023-02-18 11:56:57 +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-06-08 13:54:40 +00:00
|
|
|
}
|
|
|
|
|
2023-02-18 11:56:57 +00:00
|
|
|
package_ocp() {
|
|
|
|
provides=(${_pkgbase}=${pkgver}
|
|
|
|
${_pkgbase}-curses=${pkgver})
|
|
|
|
conflicts=('ocp-curses' 'ocp-sdl2')
|
|
|
|
depends=('alsa-lib'
|
2023-02-18 16:22:47 +00:00
|
|
|
'bzip2'
|
|
|
|
'cjson'
|
2023-02-18 13:28:49 +00:00
|
|
|
'ncurses'
|
2023-02-18 16:15:40 +00:00
|
|
|
'zlib'
|
2023-02-18 11:56:57 +00:00
|
|
|
'libancient'
|
|
|
|
'libdiscid')
|
2022-09-24 02:12:18 +00:00
|
|
|
cd $_pkgbase
|
2023-02-18 12:40:19 +00:00
|
|
|
./configure --prefix=/usr --sysconfdir=/etc --with-builtin=core\
|
2023-02-18 11:56:57 +00:00
|
|
|
--without-x11 --without-sdl2\
|
|
|
|
--without-update-desktop-database\
|
|
|
|
--without-update-mime-database
|
|
|
|
make DESTDIR="$pkgdir" libocp.so
|
2021-06-24 07:28:59 +00:00
|
|
|
make DESTDIR="$pkgdir" install
|
2015-06-08 13:54:40 +00:00
|
|
|
}
|