1
0
Fork 0
mirror of https://aur.archlinux.org/ocp.git synced 2024-12-29 07:16:56 -05:00
ocp/PKGBUILD

109 lines
3.2 KiB
Text
Raw Normal View History

# Maintainer: Xavier (sapphirus at azorium dot net)
2023-02-18 07:08:58 -05:00
# Original Contributor: Mikael Eriksson <mikael_eriksson@miffe.org>
_pkgbase=ocp
pkgname=('ocp' 'ocp-sdl2')
pkgver=0.2.103
pkgrel=5
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')
optdepends=('libvorbis: Vorbis codec support'
'libmad: MPEG codec support'
'flac: FLAC codec support')
2023-02-18 08:34:24 -05:00
makedepends=('alsa-lib'
'cjson'
'desktop-file-utils'
'freetype2'
'flac'
'git'
'ncurses'
'sdl2'
'xa'
'libancient'
'libdiscid'
'libmad'
'libjpeg-turbo'
'libpng'
'libvorbis')
source=(${_pkgbase}::git+https://github.com/mywave82/opencubicplayer.git#tag=v${pkgver})
sha256sums=('SKIP')
2020-02-05 13:53:22 -05:00
prepare() {
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! :)"
cd $_pkgbase
2020-02-05 13:53:22 -05:00
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() {
cd $_pkgbase
./configure --prefix=/usr --sysconfdir=/etc --with-builtin=core cross_compiling=yes\
--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" subdirs ocp ocp.hlp
}
package_ocp-sdl2() {
provides=(${_pkgbase}=${pkgver}
${_pkgbase}-sdl2=${pkgver})
conflicts=('ocp' 'ocp-sdl2' 'ocp-curses')
install=${_pkgbase}.install
depends=('alsa-lib'
2023-02-19 05:11:17 -05:00
'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-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 09:54:40 -04:00
}
package_ocp() {
provides=(${_pkgbase}=${pkgver}
${_pkgbase}-curses=${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 cross_compiling=yes\
--without-x11 --without-sdl2\
--without-update-desktop-database\
--without-update-mime-database
make DESTDIR="$pkgdir" libocp.so
2021-06-24 03:28:59 -04:00
make DESTDIR="$pkgdir" install
2015-06-08 09:54:40 -04:00
}