summaryrefslogtreecommitdiff
path: root/community/freedroid/PKGBUILD
blob: 06284b695351b88bd8a6d7d3cb74514fcb60ab47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# $Id: PKGBUILD 65021 2012-02-20 01:59:37Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=freedroid
pkgver=1.0.2
pkgrel=6
pkgdesc="a clone of the classic game 'Paradroid' on Commodore 64"
arch=('i686' 'x86_64' 'mips64el')
url="http://freedroid.sourceforge.net/"
license=('GPL')
depends=('glibc' 'sdl_image' 'sdl_mixer')
source=(http://downloads.sourceforge.net/sourceforge/freedroid/$pkgname-$pkgver.tar.gz
	freedroid.desktop
	paraicon.png)
md5sums=('585a65f61c2cd308ab45d5c514f695dc'
         'e4a34f00f1cd983331999022569f2b57'
         '68a11e92695978a9aac58cc21a4899db')

build() {
  cd $srcdir/$pkgname-$pkgver
  ./configure --prefix=/usr --mandir=/usr/share
  make
  make DESTDIR=$pkgdir install
  install -Dm0644 $srcdir/paraicon.png $pkgdir/usr/share/icons/paraicon.png
  install -Dm0644 $srcdir/freedroid.desktop $pkgdir/usr/share/applications/freedroid.desktop

  rm -rf $pkgdir/usr/share/freedroid/mac-osx
  find $pkgdir/usr/share/freedroid -type f -name Makefile -exec rm -f {} \;
  find $pkgdir/usr/share/freedroid -type f -name Makefile.in -exec rm -f {} \;
  find $pkgdir/usr/share/freedroid -type f -name Makefile.am -exec rm -f {} \;
}