updated on Tue Jan 17 00:10:10 UTC 2012
[aur-mirror.git] / o2em / PKGBUILD
blobd1401baea0717aa8f01ef105de748577b25fb77a
1 # Contributor: rabyte <rabyte__gmail>
3 pkgname=o2em
4 pkgver=1.18
5 pkgrel=2
6 pkgdesc="An emulator of the Magnavox Odyssey2 videogame console"
7 arch=('i686')
8 url="http://o2em.sourceforge.net/"
9 license=('custom')
10 depends=('allegro')
11 source=(http://downloads.sourceforge.net/$pkgname/o2em118src.zip \
12         patch.diff)
13 md5sums=('be96af886370df337fe8584827717627'
14          '7ad5bd1be3a2d8a74d143163a231383e')
16 build() {
17         cd ${srcdir}/o2em118src/SRC
19         for i in *; do
20                 mv -f $i $(echo $i | tr '[A-Z]' '[a-z]') || continue
21         done
23         patch -Np0 -i ${srcdir}/patch.diff || return 1
25         make -f makefile.linux CFLAGS="-Wall -fomit-frame-pointer \
26                 -I/usr/include" LIBALLEG="`allegro-config --libs`" || return 1
29 package() {
30         cd ${srcdir}/o2em118src/SRC
32         mkdir -p ${pkgdir}/usr/bin
33         install -m755 o2em dis48 ${pkgdir}/usr/bin/
35         install -Dm644 ../Docs/LICENSE.TXT \
36                 ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
37         install -Dm644 o2em.png ${pkgdir}/usr/share/pixmaps/o2em.png