aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-02-10 14:47:16 -0600
committerWilliam Pitcock <nenolod@dereferenced.org>2018-02-16 16:46:19 +0000
commitd23a18858d2b159766d0d8af7f9e576a4f28f7bd (patch)
treecc771222c2ada57a78bb21c954aecf441d509616
parentee6f81f3544837e521c34f460235054e4e2ffbc9 (diff)
downloadaports-d23a18858d2b159766d0d8af7f9e576a4f28f7bd.tar.gz
aports-d23a18858d2b159766d0d8af7f9e576a4f28f7bd.tar.bz2
aports-d23a18858d2b159766d0d8af7f9e576a4f28f7bd.tar.xz
main/thunar: modernise, add check, move pc: deps
-rw-r--r--main/thunar/APKBUILD29
1 files changed, 17 insertions, 12 deletions
diff --git a/main/thunar/APKBUILD b/main/thunar/APKBUILD
index 7e215cc1b3..bc8fe6d68b 100644
--- a/main/thunar/APKBUILD
+++ b/main/thunar/APKBUILD
@@ -1,34 +1,35 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=thunar
pkgver=1.6.12
-pkgrel=0
+pkgrel=1
pkgdesc="File manager for Xfce"
url="http://thunar.xfce.org"
arch="all"
license="GPL-2.0 LGPL-2.0"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
depends="desktop-file-utils hicolor-icon-theme shared-mime-info"
-depends_dev="gtk+2.0-dev glib-dev exo-dev"
+depends_dev="exo-dev"
makedepends="$depends_dev libexif-dev xfce4-panel-dev pcre-dev libgudev-dev
libnotify-dev startup-notification-dev libxfce4ui-dev dbus-glib-dev
- gtk-doc"
+ gtk-doc gtk+2.0-dev glib-dev"
install=
source="http://archive.xfce.org/src/xfce/thunar/${pkgver%.*}/Thunar-$pkgver.tar.bz2
thunar-sendto-audacious-playlist.desktop
thunar-sendto-bluetooth.desktop
"
-_builddir="$srcdir"/Thunar-$pkgver
+builddir="$srcdir"/Thunar-$pkgver
prepare() {
- cd "$_builddir"
+ cd "$builddir"
# fix icon in thunar-sendto-email.desktop
sed -i 's!internet-mail!mail-message-new!' \
plugins/thunar-sendto-email/thunar-sendto-email.desktop.in.in
+ default_prepare
}
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -42,22 +43,26 @@ build() {
--enable-dbus \
--enable-gio-unix \
--enable-gudev \
- --enable-gtk-doc \
- || return 1
- make || return 1
+ --enable-gtk-doc
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
}
package() {
- cd "$_builddir"
+ cd "$builddir"
local f
- make DESTDIR="$pkgdir" install || return 1
+ make DESTDIR="$pkgdir" install
sed -i -e 's:x-directory/gnome-default-handler;::' \
"$pkgdir"/usr/share/applications/Thunar-folder-handler.desktop
for f in $source; do
case $f in
thunar-sendto*.desktop)
install -m644 "$srcdir"/$f \
- "$pkgdir"/usr/share/Thunar/sendto/ || return 1
+ "$pkgdir"/usr/share/Thunar/sendto/
;;
esac
done