2015-09-09 13:51:44 +00:00
|
|
|
# Maintainer: Ossi Saukko <osaukko at gmail dot com>
|
|
|
|
_name=ocp
|
|
|
|
pkgname=ocp-git
|
2016-03-25 21:40:27 +00:00
|
|
|
pkgver=0.1.22.r79.8c58533
|
2015-09-22 14:30:17 +00:00
|
|
|
pkgrel=1
|
2015-09-09 13:56:18 +00:00
|
|
|
pkgdesc="Open Cubic Player (GIT Version)"
|
2015-09-09 13:51:44 +00:00
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url="http://stian.cubic.org/project-ocp.php"
|
|
|
|
license=('GPL')
|
|
|
|
depends=('hicolor-icon-theme'
|
|
|
|
'libxpm'
|
2016-03-21 14:50:34 +00:00
|
|
|
'libxxf86vm'
|
|
|
|
'timidity++')
|
2015-09-09 13:51:44 +00:00
|
|
|
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}"
|
2016-03-21 14:50:34 +00:00
|
|
|
git submodule init
|
|
|
|
git submodule update
|
|
|
|
./configure --prefix=/usr --sysconfdir=/etc --with-timidity-default-path=/etc/timidity++/
|
2015-09-09 13:51:44 +00:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${srcdir}/${_name}"
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
}
|