From 23f948cbcb5ee57ac7f3a14e9e363460a0f9eead Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Mon, 21 Mar 2011 21:31:25 +0000 Subject: main/xdg-utils: moved from testing --- main/xdg-utils/APKBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++ main/xdg-utils/xfce.patch | 13 +++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 main/xdg-utils/APKBUILD create mode 100644 main/xdg-utils/xfce.patch (limited to 'main/xdg-utils') diff --git a/main/xdg-utils/APKBUILD b/main/xdg-utils/APKBUILD new file mode 100644 index 0000000000..40478cb464 --- /dev/null +++ b/main/xdg-utils/APKBUILD @@ -0,0 +1,43 @@ +# Contributor: Natanael Copa +# Maintainer: Natanael Copa +pkgname=xdg-utils +pkgver=1.0.2 +pkgrel=1 +pkgdesc="Basic desktop integration functions" +url="http://portland.freedesktop.org/wiki/" +arch="noarch" +license="MIT" +depends= +makedepends= +install= +subpackages="$pkgname-doc" +source="http://portland.freedesktop.org/download/xdg-utils-$pkgver.tgz + xfce.patch" + +_builddir="$srcdir"/$pkgname-$pkgver + +prepare() { + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg "$i"; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install +} + +md5sums="348a5b91dc66426505022c74a64b2940 xdg-utils-1.0.2.tgz +328567c08a452bdbbedd2f1cca9ac116 xfce.patch" diff --git a/main/xdg-utils/xfce.patch b/main/xdg-utils/xfce.patch new file mode 100644 index 0000000000..3899a99a50 --- /dev/null +++ b/main/xdg-utils/xfce.patch @@ -0,0 +1,13 @@ +diff --git a/scripts/xdg-open b/scripts/xdg-open +index 4cc18a8..e7ed9c3 100755 +--- a/scripts/xdg-open ++++ b/scripts/xdg-open +@@ -303,7 +303,7 @@ detectDE() + { + if [ x"$KDE_FULL_SESSION" = x"true" ]; then DE=kde; + elif [ x"$GNOME_DESKTOP_SESSION_ID" != x"" ]; then DE=gnome; +- elif xprop -root _DT_SAVE_MODE | grep ' = \"xfce4\"$' >/dev/null 2>&1; then DE=xfce; ++ elif [ -x /usr/bin/exo-open ]; then DE=xfce; + fi + } + -- cgit v1.2.3