1 # Contributor: [vEX] <niechift.dot.vex.at.gmail.dot.com>
5 pkgdesc="bsnes library for Super Game Boy support."
7 url="http://byuu.org/bsnes/"
10 makedepends=('pkgconfig')
11 source=("http://byuu.org/files/${pkgname}_v015.tar.bz2")
12 md5sums=('77758d388360d48e8619a6fb7c8a54ea')
15 cd "${srcdir}/${pkgname}"
17 # Conform to the Arch Linux packaging standards
18 sed -e 's|\(libsupergameboy.*\) $(DESTDIR)$(prefix)/lib|\1 $(DESTDIR)$(prefix)/lib/\1|' \
19 -i "${srcdir}/${pkgname}/Makefile" || return 1
21 # Build and install it
23 make install DESTDIR=$pkgdir prefix=/usr || return 1
24 chmod 644 "${pkgdir}/usr/lib/lib${pkgname}.a" || return 1