updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / xroar / PKGBUILD
blobcf06a01193dd6852e2344abca7f17705d2bad3ab
1 # Contributor: Boris Timofeev <mashin87@gmail.com>
2 pkgname=xroar
3 pkgver=0.27
4 pkgrel=1
5 pkgdesc="A Dragon and Tandy CoCo emulator."
6 arch=('i686' 'x86_64')
7 license=('GPL')
8 url="http://www.6809.org.uk/dragon/xroar.shtml"
9 depends=('gtk2' 'sdl' 'libgl' 'libsndfile')
10 makedepends=('imagemagick')
11 install=xroar.install
12 source=(http://www.6809.org.uk/dragon/$pkgname-$pkgver.tar.gz
13         xroar.desktop)
14 md5sums=('b1143058297fc44b1348d5b9d82b0c5f'
15          'b72be2c92759966c932b6e61c1ae4fef')
18 build() {
19   cd $srcdir/$pkgname-$pkgver
20   ./configure --prefix=/usr --disable-jack || return 1
21   sed -e 's|LDFLAGS =|LDFLAGS = -lm|g' -i config.mak
22   make || return 1
25 package() {
26   cd $srcdir/$pkgname-$pkgver
27   install -D -m 755 xroar $pkgdir/usr/bin/xroar || return 1
28   convert gp32/icon.bmp xroar.png
29   install -D -m 644 xroar.png $pkgdir/usr/share/pixmaps/xroar.png || return 1
30   install -D -m 644 ../xroar.desktop $pkgdir/usr/share/applications/xroar.desktop || return 1
31   mkdir -p $pkgdir/usr/share/xroar/roms
32   gzip ./doc/xroar.info || return 1
33   install -D -m 644 ./doc/xroar.info.gz $pkgdir/usr/share/info/xroar.info.gz