Template
1
0
Fork 0
mirror of https://aur.archlinux.org/ocp-git.git synced 2024-12-27 22:26:56 -05:00
ocp-git/PKGBUILD
Ossi Saukko 9d2e121c8f Update to 0.1.22.r76.3c40348.
Includes quick and dirty fix for the libncursesw problem.
2016-03-23 19:30:42 +02:00

51 lines
1.5 KiB
Bash

# Maintainer: Ossi Saukko <osaukko at gmail dot com>
_name=ocp
pkgname=ocp-git
pkgver=0.1.22.r76.3c40348
pkgrel=1
pkgdesc="Open Cubic Player (GIT Version)"
arch=('i686' 'x86_64')
url="http://stian.cubic.org/project-ocp.php"
license=('GPL')
depends=('hicolor-icon-theme'
'libxpm'
'libxxf86vm'
'timidity++')
optdepends=('adplug: for OPL formats support'
'alsa-lib: for ALSA output'
'flac: for FLAC audio support'
'libmad: for MPEG audio support'
'libsidplay: for SID music support'
'libvorbis: for Vorbis audio support'
'sdl: for SDL user interface support')
makedepends=('git')
provides=("${_name}=${pkgver}")
conflicts=("${_name}")
install=$pkgname.install
source=("${_name}::git://git.code.sf.net/p/opencubicplayer/code")
md5sums=('SKIP')
pkgver() {
cd "${srcdir}/${_name}"
printf "%s.r%s.%s" "$(grep \^AC_INIT configure.ac|cut -d, -f2|xargs)" \
"$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "${srcdir}/${_name}"
git submodule init
git submodule update
## TODO: Better fix for libnursesw ##
sed -i.bak s/ncursesw\\/curses\.h/curses.h/g configure
sed -i.bak s/ncursesw\\/curses\.h/curses.h/g config.h.in
## TODO: Better fix for libnursesw ##
./configure --prefix=/usr --sysconfdir=/etc --with-timidity-default-path=/etc/timidity++/
make
}
package() {
cd "${srcdir}/${_name}"
make DESTDIR="${pkgdir}" install
}