aboutsummaryrefslogtreecommitdiffstats
path: root/main/thunar/APKBUILD
blob: f99a041026d2cef34dbcd3650792db92e289ead8 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=thunar
pkgver=1.0.1
pkgrel=6
pkgdesc="File manager for Xfce"
url="http://thunar.xfce.org"
license="GPL2 LGPL2"
subpackages="$pkgname-dev $pkgname-doc"
depends="desktop-file-utils hicolor-icon-theme"
makedepends="pkgconfig libexif-dev xfce4-panel-dev exo-dev pcre-dev
	intltool gettext-dev libiconv-dev expat-dev startup-notification-dev
	libsm-dev e2fsprogs-dev gamin-dev libexif-dev jpeg-dev"
install=
source="http://archive.xfce.org/src/xfce/thunar/${pkgver%.*}/Thunar-$pkgver.tar.bz2
	libpng-1.4.patch"

depends_dev="exo-dev glib-dev gamin-dev jpeg-dev"
_builddir="$srcdir"/Thunar-$pkgver

prepare() {
	cd "$_builddir"
	patch -p1 -i "$srcdir"/libpng-1.4.patch
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--libexecdir=/usr/lib \
		--localstatedir=/var \
		--disable-static \
		--disable-gnome-thumbnailers \
		--enable-exif \
		--enable-pcre
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	sed -i 's:x-directory/gnome-default-handler;::' "$pkgdir"/usr/share/applications/Thunar-folder-handler.desktop
}

md5sums="218373aa45d74b6ba8c69c4d5af3bb19  Thunar-1.0.1.tar.bz2
ee998c20ba13d0cb18741da8b7d67328  libpng-1.4.patch"