aboutsummaryrefslogtreecommitdiffstats
path: root/main/parole/APKBUILD
blob: b971dab860404d7f4342af1145c67f81cfb61ff1 (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=parole
pkgver=0.2.0.6
pkgrel=2
pkgdesc="Media player for the Xfce desktop"
url="http://goodies.xfce.org/projects/applications/parole/"
arch="all"
license="GPL"
depends=""
makedepends="libxfcegui4-dev libxfce4util-dev intltool gstreamer-dev bash
	gst-plugins-base-dev libsm-dev taglib-dev libnotify-dev"
install=
subpackages="$pkgname-dev $pkgname-lang"
# the libx11 is a hack. The real solution is filed in
# https://bugzilla.xfce.org/show_bug.cgi?id=6244
source="http://archive.xfce.org/src/apps/parole/0.2/parole-$pkgver.tar.bz2
	libx11.patch"

prepare() {
	cd "$srcdir"/$pkgname-$pkgver
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$srcdir"/$pkgname-$pkgver
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		|| return 1
	make || return 1
}

package() {
	cd "$srcdir"/$pkgname-$pkgver
	make DESTDIR="$pkgdir" install
	find "$pkgdir" -name '*.la' -delete
}

md5sums="5d7e5ab7535bdf89508a8d7e551f9187  parole-0.2.0.6.tar.bz2
97b18d6e09433458439f6c7325d839b1  libx11.patch"