updated on Thu Jan 19 00:16:31 UTC 2012
[aur-mirror.git] / objconv / PKGBUILD
blobba4c2dd00a236310d31cdf33e011d5092cf01efc
1 pkgname=objconv
2 pkgver=2.11
3 pkgrel=1
4 pkgdesc='A command-line disassembler supporting x86, x86-64, PE, COFF, ELF, OMF and Mach-O'
5 arch=('i686' 'x86_64')
6 url=http://www.agner.org/optimize/
7 license=('GPL')
8 depends=('glibc')
9 makedepends=('hd2u' 'unzip')
10 source=(http://www.agner.org/optimize/$pkgname.zip)
11 md5sums=('e465d1a3c1a2d19474bce20cce2fb8dc')
13 build() {
14         cd "$srcdir"
15         unzip source.zip -d source
17         cd source
18         dos2unix *
20         echo -n 'Building ... '
22         # As in ''${srcdir}/source/build.sh'':
23         g++ -o objconv -O2 *.cpp
25         echo 'Done.'
27         install -D -m755 "$srcdir/source/objconv" "$pkgdir/usr/bin/objconv"
28         install -D -m755 "$srcdir/objconv-instructions.pdf" "$pkgdir/usr/share/doc/$pkgname/manual.pdf"