[arch-commits] Commit in yaws/trunk (PKGBUILD)

Alexander Rødseth arodseth at archlinux.org
Sat Jan 16 23:30:48 UTC 2016


    Date: Sunday, January 17, 2016 @ 00:30:47
  Author: arodseth
Revision: 157022

upgpkg: yaws 2.0.2-1

Modified:
  yaws/trunk/PKGBUILD

----------+
 PKGBUILD |   12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-01-16 22:14:44 UTC (rev 157021)
+++ PKGBUILD	2016-01-16 23:30:47 UTC (rev 157022)
@@ -35,13 +35,19 @@
 }
 
 package() {
-  make -C "$pkgname-$pkgver" DESTDIR="$pkgdir" install
+  cd "$pkgname-$pkgver"
+
+  make DESTDIR="$pkgdir" install
   install -d "$pkgdir/usr/lib/erlang/lib"
   ln -s /usr/lib/yaws "$pkgdir/usr/lib/erlang/lib/$pkgname-$pkgver"
-  install -Dm644 "$pkgname.service" \
+  install -Dm644 "$srcdir/$pkgname.service" \
     "$pkgdir/usr/lib/systemd/system/$pkgname.service"
-  install -Dm644 "$pkgname-$pkgver/LICENSE" \
+  install -Dm644 "$srcdir/$pkgname-$pkgver/LICENSE" \
     "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+  # Path fixups
+  mv "$pkgdir/srv/http/www" "$pkgdir/srv/http/yaws"
+  cp -ru examples/include "$pkgdir/usr/lib/yaws-$pkgver/examples/"
 }
 
 # getver: yaws.hyber.org/download/?M=r



More information about the arch-commits mailing list