updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / opensonic / PKGBUILD
blob6b1491a791c5492e9eefac3dfe7c7f12c09f33f4
1 # Maintainer: Anton Larionov <diffident dot cat at gmail dot com>
2 # Contributor: Dany Martineau <dany.luc.martineau gmail com>
5 pkgname=opensonic
6 pkgver=0.1.4
7 pkgrel=4
8 pkgdesc="Game based on the Sonic the Hedgehog universe."
9 arch=('i686' 'x86_64')
10 url="http://opensnc.sourceforge.net/"
11 license=('GPL')
12 depends=('allegro4')
13 # Dependency 'libpng' provides by 'allegro4'
14 makedepends=('cmake')
15 install=opensonic.install
17 source=("http://downloads.sourceforge.net/project/opensnc/Open Sonic/${pkgver}/opensnc-src-${pkgver}.tar.gz"
18         'opensonic.desktop'
19         'opensonic.sh')
21 md5sums=('069fa14f43251b218b4fd81378d1cd78'
22          '29ba0a89203cd59cef11ad465ef7145f'
23          '145a9da698f74ee3a9decc125132a4be')
26 build() {
27   cd "${srcdir}/opensnc-src-${pkgver}/"
28   unset LDFLAGS
29   ./configure --prefix=/usr
30   make
33 package() {
34   cd "${srcdir}/opensnc-src-${pkgver}/"
35   make DESTDIR="${pkgdir}" install
36   install -dm755 "${pkgdir}/usr/share/applications/"
37   install -m644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
38   install -m644 icon.png "${pkgdir}/usr/share/${pkgname}/"
39   install -D -m755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
42 # vim:set ts=2 sw=2 et: