summaryrefslogtreecommitdiffstats
path: root/testing/thunar-media-tags-plugin/APKBUILD
blob: 5a6313345ffeab30ecc9708c579820d176f442cb (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=thunar-media-tags-plugin
pkgver=0.1.2
pkgrel=0
pkgdesc="Media Tags plugin for the Thunar file manager"
url="http://goodies.xfce.org/projects/thunar-plugins/thunar-media-tags-plugin"
arch="all"
license="GPLv2+"
depends=""
makedepends="thunar-dev xfce4-dev-tools taglib-dev"
install=""
subpackages="$pkgname-lang"
source="http://goodies.xfce.org/releases/thunar-media-tags-plugin/thunar-media-tags-plugin-$pkgver.tar.bz2
	01_port-to-thunarx-2.patch
	02_port-to-exo-1.patch
	03_fix-crash-with-ogg-video-files.patch
	04_fix-implicit-dso-linking.patch"

_builddir="$srcdir"/thunar-media-tags-plugin-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	xdt-autogen
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--libexecdir=/usr/lib/xfce4 \
		--disable-static \
		--sysconfdir=/etc \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/thunarx-2/*.la
}

md5sums="8a95f0ea4df6f757c1c94eb5442d2ff5  thunar-media-tags-plugin-0.1.2.tar.bz2
479843c634c516afb405ebdd72f37203  01_port-to-thunarx-2.patch
5af37349b7d6d1b0180e49c1d86f9d8f  02_port-to-exo-1.patch
d83ec2e224db216f90e9035b442e1e73  03_fix-crash-with-ogg-video-files.patch
b6956747e247de938bc0970ba78cd8bf  04_fix-implicit-dso-linking.patch"