blob: 798ae38f7731dfc6c5b9414a122539840762464d (
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
44
45
46
47
48
49
|
# $Id: PKGBUILD 46622 2011-05-10 10:00:25Z lfleischer $
# Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de>
# Contributor: jlvsimoes <jlvsimoes@oninet.pt>
# Contributor: kevin <kevin@archlinux.org>
pkgname=abuse-libre
pkgver=0.8
pkgrel=1
pkgdesc='A side-scroller action game that pits you against ruthless alien killers. Without unfree "Claudio"'
arch=('i686' 'x86_64')
url='http://abuse.zoy.org/'
license=('GPL' 'custom:PublicDomain')
depends=('gcc-libs' 'libgl' 'sdl' 'sdl_mixer')
install='abuse.install'
source=("http://repo.parabolagnulinux.org/other/${pkgname}-${pkgver}.tar.gz")
# Remove the unfree 'claudio' addon
# $ source PKGBUILD
# $ mksource
mksource() {
pushd /tmp >/dev/null
wget http://abuse.zoy.org/raw-attachment/wiki/download/${pkgname%-libre}-${pkgver}.tar.gz \
-O - | tar xzf -
rm -rvf ./abuse-$pkgver/data/addon/claudio
tar czvf ${pkgname}-${pkgver}.tar.gz ./abuse-$pkgver
popd >/dev/null
mv -v /tmp/${pkgname}-${pkgver}.tar.gz .
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
./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"
}
|