1 # Contributor: Evgeny Grablyk <sm@linuxforum.org.ua>
5 pkgdesc="An advanced feature-rich binary manipulation library"
7 url="http://sourceforge.net/projects/libopenptch/"
9 source=(http://downloads.sourceforge.net/libopenptch/OpenPtch_$pkgver.rar)
10 md5sums=('3d01b04b2347d9091e34709baef0f41b')
11 builddepends=('unrar')
15 unrar x -o+ OpenPtch_$pkgver.rar > /dev/null || return 1
17 rm main.{c,h} || return 1
18 gcc -fPIC -g -c -Wall *.c || return 1
19 gcc -shared -Wl -o $pkgname.so *.o -lc || return 1
20 install -d $startdir/pkg/usr/lib/ || return 1
21 install $pkgname.so $startdir/pkg/usr/lib/ || return 1
22 ldconfig -n /usr/lib/ || return 1