]> git.immae.eu Git - perso/Immae/Config/AUR.git/commitdiff
version 1:6.1.2.g3465bed-2
authorBrian Bidulock <bidulock@openss7.org>
Thu, 31 Mar 2016 20:44:44 +0000 (14:44 -0600)
committerBrian Bidulock <bidulock@openss7.org>
Thu, 31 Mar 2016 20:44:44 +0000 (14:44 -0600)
.SRCINFO
PKGBUILD
dwm.install

index 7c756b23469cd1917d202dac323485f97375da63..c8aa8725b18b725d7ee7b835898b951cbd73ce39 100644 (file)
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,9 @@
 # Generated by mksrcinfo v8
-# Sun Mar 20 05:50:52 UTC 2016
+# Thu Mar 31 20:44:15 UTC 2016
 pkgbase = dwm-git
        pkgdesc = A dynamic window manager for X
        pkgver = 6.1.2.g3465bed
-       pkgrel = 1
+       pkgrel = 2
        epoch = 1
        url = http://dwm.suckless.org
        install = dwm.install
index 8459e99b3c3a38e3a56133c3276e37d298433031..50682275656ede0a112715a5d4f2abdc26733041 100644 (file)
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,11 +1,7 @@
 pkgname=dwm-git
 _pkgname=dwm
 pkgver=6.1.2.g3465bed
-pkgver(){
-  cd $_pkgname
-  git describe --tags |sed 's/-/./g'
-}
-pkgrel=1
+pkgrel=2
 pkgdesc="A dynamic window manager for X"
 url="http://dwm.suckless.org"
 arch=('i686' 'x86_64')
@@ -22,9 +18,15 @@ source=(dwm.desktop
 md5sums=('939f403a71b6e85261d09fc3412269ee'
          'SKIP')
 
+pkgver(){
+  cd $_pkgname
+  git describe --tags |sed 's/-/./g'
+}
+
 prepare() {
-  if [[ -f $SRCDEST/config.h ]]; then
-    cp $SRCDEST/config.h $srcdir/dwm/config.h
+  cd $_pkgname
+  if [[ -f "$SRCDEST/$pkgname/config.h" ]]; then
+    cp -f "$SRCDEST/$pkgname/config.h" config.h
   fi
 }
 
@@ -34,10 +36,11 @@ build() {
 }
 
 package() {
-  make -C $_pkgname PREFIX=/usr DESTDIR=$pkgdir install
-  install -m644 -D $_pkgname/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
-  install -m644 -D $_pkgname/README $pkgdir/usr/share/doc/$pkgname/README
-  install -m644 -D $srcdir/dwm.desktop $pkgdir/usr/share/xsessions/dwm.desktop
+  cd $_pkgname
+  make PREFIX=/usr DESTDIR="$pkgdir" install
+  install -m644 -D LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  install -m644 -D README "$pkgdir/usr/share/doc/$pkgname/README"
+  install -m644 -D ../dwm.desktop "$pkgdir/usr/share/xsessions/dwm.desktop"
 }
 
 # vim:set ts=2 sw=2 et:
index 44b50ed824c7547a093751deb293718177357655..9675514c84ca6ad272620015e4c7a57d9cb6436b 100644 (file)
@@ -1,4 +1,5 @@
 post_install() {
   echo "-- Edit config.h in dwm's PKGBUILD directory (generally /var/abs/community/dwm/)"
   echo "-- and rebuild package if you want to change settings."
+  echo "-- Or, place custom config.h in \$SRCDEST/dwm-git/config.h and rebuild."
 }