summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 36330c53b2e51490fabc8d104c6c8db6a59228d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Maintainer: cysp74 at gmail dot com
_name=ocp-curses
pkgname="${_name}-git"
pkgver=0.2.102.r2.g0065417
pkgrel=1
pkgdesc="Open Cubic Player - ncurses only (GIT Version)"
arch=('i686' 'x86_64')
url="http://stian.cubic.org/project-ocp.php"
license=('GPL')
depends=('pulseaudio-alsa' 'cjson' 'libdiscid' 'libancient')
optdepends=('adplug: for OPL formats support'
			'alsa-lib: for ALSA output'
			'flac: for FLAC audio support'
			'libmad: for MPEG audio support'
			'libvorbis: for Vorbis audio support')
makedepends=( 'git' 'xa' )
provides=("${_name}=${pkgver}" "${_name}-git=${pkgver}")
conflicts=('ocp' 'ocp-git')
install=$pkgname.install
source=("${_name}::git+https://github.com/mywave82/opencubicplayer.git")
md5sums=('SKIP' )

prepare() {
	cd "${srcdir}/${_name}"
}

pkgver() {
	git -C "${_name}" describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//g'
}

build() {
	cd "${srcdir}/${_name}"
	git submodule init
	git submodule update

	git submodule update --init --recursive

	CONFIG="--prefix=/usr --sysconfdir=/etc \
	--with-timidity-default-path=/etc/timidity++/ \
	--without-x11 \
	--without-sdl \
	--without-sdl2 \
	--with-ncurses \
	--without-debug"

	./configure ${CONFIG}
	make clean
	make
}

package() {
	cd "${srcdir}/${_name}"
	make DESTDIR="${pkgdir}" install
}