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

Dave Reisner dreisner at archlinux.org
Wed Nov 2 11:44:27 EDT 2011


    Date: Wednesday, November 2, 2011 @ 11:44:27
  Author: dreisner
Revision: 141727

rebuild to add signature and cleanup

Modified:
  bin86/trunk/PKGBUILD

----------+
 PKGBUILD |   23 +++++++++++++----------
 1 file changed, 13 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-11-02 15:25:43 UTC (rev 141726)
+++ PKGBUILD	2011-11-02 15:44:27 UTC (rev 141727)
@@ -4,27 +4,30 @@
 
 pkgname=bin86
 pkgver=0.16.18
-pkgrel=1
+pkgrel=2
 pkgdesc="A complete 8086 assembler and loader"
-arch=(i686 x86_64)
+arch=('i686' 'x86_64')
 license=('GPL')
 url="http://www.debath.co.uk/"
 depends=('glibc')
-source=(http://www.debath.co.uk/dev86//$pkgname-$pkgver.tar.gz
-	bin86-0.16.17-x86_64-1.patch)
+source=("http://www.debath.co.uk/dev86//$pkgname-$pkgver.tar.gz"
+        bin86-0.16.17-x86_64-1.patch)
 md5sums=('914068fb649b93642d1cf21857b75699'
          '92bdce7b0655cd2e9f83c83fc56d128e')
 
 build() {
-  cd $srcdir/$pkgname-$pkgver
-  if [ "$CARCH" = "x86_64" ]; then
-     patch -Np1 -i ../bin86-0.16.17-x86_64-1.patch
+  cd "$srcdir/$pkgname-$pkgver"
+
+  if [[ $CARCH = x86_64 ]]; then
+     patch -Np1 < "$srcdir/bin86-0.16.17-x86_64-1.patch"
   fi
+
   make PREFIX=/usr
 }
 
 package() {
-  cd $srcdir/$pkgname-$pkgver
-  mkdir -p $pkgdir/usr/bin $pkgdir/usr/share/man/man1
-  make PREFIX=$pkgdir/usr MANDIR=$pkgdir/usr/share/man/man1 install
+  cd "$srcdir/$pkgname-$pkgver"
+
+  mkdir -p "$pkgdir/usr/bin" "$pkgdir/usr/share/man/man1"
+  make "PREFIX=$pkgdir/usr" "MANDIR=$pkgdir/usr/share/man/man1" install
 }



More information about the arch-commits mailing list