summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorcopycat-killer2017-02-01 21:58:48 +0100
committercopycat-killer2017-02-01 21:58:48 +0100
commit736df092e2825a203250350ccf86f69af846d565 (patch)
tree7a1b5bf39cbdf39e06032ccd002c153690dd5e14 /PKGBUILD
parent19a9b5c90848cb3d6307bd8e56b3e35b1374d5cb (diff)
downloadaur-736df092e2825a203250350ccf86f69af846d565.tar.gz
wiki updated
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD23
1 files changed, 15 insertions, 8 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 0b2721dc561..15eaf1c9544 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,8 @@
# Maintainer: luke bonham <dada [at] archlinux [dot] info>
pkgname=lain-git
-pkgcom=1530
-pkgsha=1555e23
+pkgcom=1531
+pkgsha=a1ba902
pkgver=$pkgcom.$pkgsha
pkgrel=1
pkgdesc="Layouts, asynchronous widgets and utilities for Awesome WM"
@@ -18,11 +18,18 @@ source=("git://github.com/copycat-killer/lain.git")
md5sums=('SKIP')
package() {
- install -dm755 "$pkgdir/usr/share/awesome/lib/lain"
- git --git-dir=lain/.git --work-tree=lain/ reset --hard $pkgsha --quiet
- rm -rf lain/{wiki,.git*,*.rockspec,*TEMPLATE*}
- cp -a lain "$pkgdir/usr/share/awesome/lib/"
+ aw=$(which awesome | grep local) # check if awesome is stable or git
+ if [ -z ${#aw} ]; then
+ aw_path="$pkgdir/usr/share/awesome/lib"
+ else
+ aw_path="$pkgdir/usr/local/share/awesome/lib"
+ fi
- # Fix permissions
- find "$pkgdir" -type f ! -path "*/scripts/*" -print0 | xargs -0 chmod -R 644
+ install -dm755 "$aw_path/lain"
+ git --git-dir=lain/.git --work-tree=lain/ reset --hard $pkgsha --quie
+ rm -rf lain/{wiki,.git*,*.rockspec,*TEMPLATE*}
+ cp -a lain $aw_path
+
+ # Fix permissions
+ find "$pkgdir" -type f ! -path "*/scripts/*" -print0 | xargs -0 chmod -R 644
}