summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorrunnytu2017-08-16 21:27:21 +0200
committerrunnytu2017-08-16 21:27:21 +0200
commit9f86bc2728b85518a4abaaaff316280bdda7b211 (patch)
tree1d075aeafdcf0f5532bae254807efab9c9d0af00
parent25a8e63990240b1bf73341bab8e857c9a1513842 (diff)
downloadaur-9f86bc2728b85518a4abaaaff316280bdda7b211.tar.gz
Tiddy up PKGBUILD
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD20
2 files changed, 10 insertions, 12 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 6e7d8b0e17f..deee67a325c 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,5 +1,3 @@
-# Generated by makepkg 4.2.1
-# Mon Jun 8 19:53:52 UTC 2015
pkgbase = dynagen
pkgdesc = Dynagen is a front-end for use with the Dynamips Cisco router emulator.
pkgver = 0.11.0
diff --git a/PKGBUILD b/PKGBUILD
index 2e07a1fd40f..78df188464c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -15,23 +15,23 @@ source=(http://downloads.sourceforge.net/dyna-gen/${pkgname}-${pkgver}.tar.gz)
md5sums=('3f88b3449b17096dca84d007f0b91b3f')
build() {
- cd $srcdir/$pkgname-$pkgver
+ cd "$srcdir/$pkgname-$pkgver"
sed -i 's/\/usr\/bin\/python/\/usr\/bin\/python2/' *.py dynagen
sed -i 's/\/usr\/bin\/env python/\/usr\/bin\/python2/' *.py
rm -R docs/ sample_labs/ COPYING README.txt
}
package() {
- mkdir -p $pkgdir/usr/share/dynagen
- cp -dpr --no-preserve=ownership $srcdir/$pkgname-$pkgver/* $pkgdir/usr/share/dynagen
+ mkdir -p "$pkgdir/usr/share/dynagen"
+ cp -dpr --no-preserve=ownership "$srcdir/$pkgname-$pkgver/*" "$pkgdir/usr/share/dynagen"
- mkdir -p $pkgdir/usr/bin
- cd $pkgdir/usr/bin
+ mkdir -p "$pkgdir/usr/bin"
+ cd "$pkgdir/usr/bin"
ln -s ../share/dynagen/dynagen
- mkdir $pkgdir/etc
- mv $pkgdir/usr/share/dynagen/dynagen.ini $pkgdir/etc
- chmod 644 $pkgdir/usr/share/dynagen/*
- chmod 755 $pkgdir/usr/share/dynagen/dynagen
- chmod 755 $pkgdir/usr/share/dynagen/pemu-start.sh
+ mkdir "$pkgdir/etc"
+ mv "$pkgdir/usr/share/dynagen/dynagen.ini" "$pkgdir/etc"
+ chmod 644 "$pkgdir/usr/share/dynagen/*"
+ chmod 755 "$pkgdir/usr/share/dynagen/dynagen"
+ chmod 755 "$pkgdir/usr/share/dynagen/pemu-start.sh"
}