updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / asmutils / PKGBUILD
bloba2b5f03c4685aecad9e5bdbd33258c1341b34a86
1 # Maintainer: Jens Staal <staal1978@gmail.com>
3 pkgname=asmutils
4 pkgver=0.18
5 pkgrel=1
6 pkgdesc="A *NIX userland written in assembly"
7 arch=('i686')
8 license=('GPLv2')
9 url="http://asm.sourceforge.net/asmutils.html"
10 makedepends=("nasm")
11 source=('http://asm.sourceforge.net/asmutils/asmutils-0.18.tar.gz' 'mconfig.patch')
12 md5sums=('a11c8fea347026449ecd2e5807e77d64' '2545f35791cbb31558771023403dcf69')
14 build() {
15   cd $srcdir
16   msg "setting up build directories"
17   rm -rf $srcdir/build
18   cp -ar $srcdir/$pkgname-$pkgver $srcdir/build
19   cd $srcdir/build
20   patch -p0 $srcdir/build/MCONFIG -i $srcdir/mconfig.patch
21   make || return 1
24 package() {
25   mkdir "$pkgdir/opt/asmutils"
26 msg "cleaning up directories"
27   rm $srcdir/build/src/*.asm
28   rm $srcdir/build/src/Makefile  
29   rm $srcdir/build/src/bonus/*.asm
30   rm $srcdir/build/lib/*.asm
31   rm $srcdir/build/lib/*.c
32   rm $srcdir/build/lib/Makefile
33   
34 msg "packaging..."
35   cp -ar $srcdir/build/doc $pkgdir/opt/asmutils/doc
36   cp -ar $srcdir/build/lib $pkgdir/opt/asmutils/lib
37   cp -ar $srcdir/build/src $pkgdir/opt/asmutils/bin