summaryrefslogtreecommitdiff
path: root/libre/abuse-libre/PKGBUILD
blob: 9dc5a955e64f3dbeff90d822d1296b7a82554760 (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
32
33
34
35
36
37
38
39
40
41
42
43
# $Id$
# Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de>
# Contributor: jlvsimoes <jlvsimoes@oninet.pt>
# Contributor: kevin <kevin@archlinux.org>
# Contributor (Parabola): André Silva <emulatorman@lavabit.com>

_pkgname=abuse
pkgname=abuse-libre
pkgver=0.8
pkgrel=2
pkgdesc='A side-scroller action game that pits you against ruthless alien killers, without nonfree claudio support'
arch=('i686' 'x86_64')
url='http://abuse.zoy.org/'
license=('GPL' 'custom')
depends=('gcc-libs' 'glu' 'sdl' 'sdl_mixer')
provides=('$_pkgname=$pkgver')
replaces=('$_pkgname')
conflicts=('$_pkgname')
install='abuse.install'
source=("http://abuse.zoy.org/raw-attachment/wiki/download/${_pkgname}-${pkgver}.tar.gz"
        non-claudio.patch)
md5sums=('ec678b8dc8d00e0382d8c805c6438489'
         '4808c8be42f551bb3c611629a7833f09')

build() {
  cd "${srcdir}/${_pkgname}-${pkgver}"

# Remove the nonfree claudio addon
  rm -rvf ./data/addon/claudio
  patch -Np1 -i "$srcdir/non-claudio.patch"

  ./configure --prefix=/usr --with-assetdir=/usr/share/abuse/orig --with-x
  make
}

package() {
  cd "${srcdir}/${_pkgname}-${pkgver}"

  make DESTDIR="${pkgdir}" install

  install -d "${pkgdir}/usr/share/licenses/abuse"
  sed -n '1,/^$/p' src/view.cpp > "${pkgdir}/usr/share/licenses/abuse/orig.code.license"
}