Template
1
0
Fork 0
mirror of https://aur.archlinux.org/ocp-git.git synced 2025-05-09 19:44:28 -04:00

Update to 0.2.1.r452.1f28294

There have been many updates to the OCP git version. I updated the
PKGBUILD file again to work with the latest version.

Unfortunately, the MAD support had to be left out for now as there were
missing build instructions for charset.o. I'll try to introduce it back
again with the new revisions.

The package ttf-unifont is now a required dependency. A new patch was
needed that changes the font filenames to match the package.
This commit is contained in:
Ossi Saukko 2020-04-19 15:54:12 +03:00
parent ffaa32d4fe
commit a35019a59f
3 changed files with 151 additions and 7 deletions

View file

@ -1,7 +1,7 @@
# Maintainer: Ossi Saukko <osaukko at gmail dot com>
_name=ocp
pkgname=ocp-git
pkgver=0.2.1.r387.fdc6121
pkgver=0.2.1.r452.1f28294
pkgrel=1
pkgdesc="Open Cubic Player (GIT Version)"
arch=('i686' 'x86_64')
@ -9,7 +9,8 @@ url="http://stian.cubic.org/project-ocp.php"
license=('GPL')
depends=('hicolor-icon-theme'
'libxpm'
'libxxf86vm')
'libxxf86vm'
'ttf-unifont')
optdepends=('adplug: for OPL formats support'
'alsa-lib: for ALSA output'
'flac: for FLAC audio support'
@ -22,8 +23,16 @@ makedepends=('git'
provides=("${_name}=${pkgver}")
conflicts=("${_name}")
install=$pkgname.install
source=("${_name}::git://github.com/mywave82/opencubicplayer.git")
md5sums=('SKIP')
source=("${_name}::git://github.com/mywave82/opencubicplayer.git"
"unifont.patch")
md5sums=('SKIP'
'27d962f746ba8c6b761f6a62ae5d093a')
prepare() {
cd "${srcdir}/${_name}"
# The ttf-unifont package changes the file names. This patch changes the OCP source code to use the same names.
patch --forward --strip=2 --input="${srcdir}/unifont.patch"
}
pkgver() {
cd "${srcdir}/${_name}"
@ -38,12 +47,16 @@ build() {
# If both SDL and SDL2 are installed, then disable SDL.
# Otherwise there are functions with similar names and linking fails.
CONFIG="--prefix=/usr --sysconfdir=/etc --with-timidity-default-path=/etc/timidity++/"
CONFIG="--prefix=/usr --sysconfdir=/etc --with-timidity-default-path=/etc/timidity++/ --with-unifontdir=/usr/share/fonts/Unifont"
if [ -f /usr/include/SDL/SDL.h ] && [ -f /usr/include/SDL2/SDL.h ]
then
CONFIG="${CONFIG} --without-sdl"
fi
# The revision r452.1f28294 lacks instructions on how to build playmp2/charset.o, which prevents us from making the package.
# Let us try to re-introduce MAD again in subsequent revisions. For now, we have to go without it.
CONFIG="${CONFIG} --without-mad"
./configure ${CONFIG}
make
}