summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorcopycat-killer2017-02-02 11:35:53 +0100
committercopycat-killer2017-02-02 11:35:53 +0100
commit6181bf2317bdf5571cfd43f49fb6a4482da48698 (patch)
treed306707549ef0a0fc5029ac0ab65d025f35db86a
parenta2be11c762b17ef76d8a85a40eb35f418c08eed6 (diff)
downloadaur-6181bf2317bdf5571cfd43f49fb6a4482da48698.tar.gz
updated PKGBUILD
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD17
2 files changed, 13 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 109f83cabd0..25c51df72d4 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,5 +1,5 @@
# Generated by mksrcinfo v8
-# Wed Jan 25 18:56:49 UTC 2017
+# Thu Feb 2 10:35:47 UTC 2017
pkgbase = awesome-freedesktop-git
pkgdesc = Freedesktop.org menu and desktop icons support for Awesome WM
pkgver = 89.f9e7629
diff --git a/PKGBUILD b/PKGBUILD
index f07e2a18f11..047bce34f3d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -17,9 +17,16 @@ source=("git://github.com/copycat-killer/awesome-freedesktop.git")
md5sums=('SKIP')
package() {
- mv awesome-freedesktop freedesktop
- install -dm755 "$pkgdir/usr/share/awesome/lib/freedesktop"
- git --git-dir=freedesktop/.git --work-tree=freedesktop/ reset --hard $pkgsha --quiet
- rm -rf freedesktop/{wiki,.git*,*.rockspec,*TEMPLATE*,*.png}
- cp -a freedesktop "$pkgdir/usr/share/awesome/lib/"
+ # check if awesome is stable or git
+ if [ -d "/usr/share/awesome/lib/" ]; then
+ aw_path="$pkgdir/usr/share/awesome/lib"
+ else
+ aw_path="$pkgdir/usr/local/share/awesome/lib"
+ fi
+
+ mv awesome-freedesktop freedesktop
+ install -dm755 "$aw_path/freedesktop"
+ git --git-dir=freedesktop/.git --work-tree=freedesktop/ reset --hard $pkgsha --quiet
+ rm -rf freedesktop/{wiki,.git*,*.rockspec,*TEMPLATE*,*.png}
+ cp -a freedesktop $aw_path
}