From 272d8546acd8cce70852359bc1fee429d3fa5dc7 Mon Sep 17 00:00:00 2001 From: "coadde [Márcio Alexandre Silva Delgado]" Date: Wed, 3 Sep 2014 18:33:55 -0300 Subject: rename to abuse-libre --- libre/abuse/PKGBUILD | 79 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 libre/abuse/PKGBUILD (limited to 'libre/abuse/PKGBUILD') diff --git a/libre/abuse/PKGBUILD b/libre/abuse/PKGBUILD new file mode 100644 index 000000000..6734cce30 --- /dev/null +++ b/libre/abuse/PKGBUILD @@ -0,0 +1,79 @@ +# $Id: PKGBUILD 101370 2013-11-23 19:00:48Z arodseth $ +# Maintainer (Arch): Alexander Rødseth +# Contributor (Arch): Lukas Fleischer +# Contributor (Arch): jlvsimoes +# Contributor (Arch): kevin +# Contributor: André Silva +# Contributor: Márcio Silva + +pkgname=abuse +_pkgname=$pkgname-libre +pkgver=0.8 +pkgrel=4 +pkgdesc='Side-scroller action game that pits you against ruthless alien killers, without nonfree claudio support' +arch=('x86_64' 'i686' 'mips64el') +url="http://$pkgname.zoy.org/" +license=('GPL' 'custom') +replaces=($_pkgname) +conflicts=($_pkgname) +depends=('gcc-libs' 'libgl' 'sdl_mixer' 'glu' 'desktop-file-utils') +makedepends=('gendesk' 'mesa-libgl' 'glu') +install="$pkgname.install" +mksource=("http://$pkgname.zoy.org/raw-attachment/wiki/download/$_pkgname-$pkgver.tar.gz" + 'non-claudio.patch') +source=("https://repo.parabolagnulinux.org/other/$pkgname/$pkgname-$pkgver.tar.gz" + "$pkgname.sh" + "default.${pkgname}rc" + 'default.gamma.lsp') +mksha256sums=('0104db5fd2695c9518583783f7aaa7e5c0355e27c5a803840a05aef97f9d3488' + '017cb58acf5ba8cdb889f97a758318cb66ab4947b860a77ab16b932c3f21b98f') +sha256sums=('ff7018b3ddcc6d2e702bc14eb2884622677ac5141c36e1fc0cdd127df3017f7d' + 'a5ddac71ca9b8c4bb42bdf91393a5fbe3d839ab9a9e9a6362a75dafc2aab122e' + '6ea2fa9e65c10bbcab4432f40d0c7284cb3970835c40c5c00ced14b39ce1b00f' + '13df83fea60918d29d5141cdfbd8d56147c053e88d3701209ae676f46447c2f6') + +mksource() { + cd "$pkgname-$pkgver" + + # Remove the nonfree claudio addon + rm -rvf ./data/addon/claudio + patch -Np1 -i "$srcdir/non-claudio.patch" +} + +prepare() { + cd "$pkgname-$pkgver" + + gendesk -n -f --pkgname "$pkgname" --pkgdesc "$pkgdesc" +} + +build() { + cd "$pkgname-$pkgver" + + ./configure --prefix=/usr --with-assetdir="/usr/share/$pkgname/orig" --with-x + make +} + +package() { + cd "$pkgname-$pkgver" + + make DESTDIR="$pkgdir" install + + # Desktop shortcut and icon + install -Dm644 "$pkgname.desktop" \ + "$pkgdir/usr/share/applications/$pkgname.desktop" + install -Dm644 "doc/$pkgname.png" "$pkgdir/usr/share/pixmaps/$pkgname.png" + + # Sane defaults + mv "$pkgdir/usr/bin/$pkgname" "$pkgdir/usr/bin/$pkgname.elf" + install -Dm755 "$srcdir/$pkgname.sh" "$pkgdir/usr/bin/$pkgname" + install -Dm644 "$srcdir/default.${pkgname}rc" \ + "$pkgdir/usr/share/$pkgname/default.${pkgname}rc" + install -Dm644 "$srcdir/default.gamma.lsp" \ + "$pkgdir/usr/share/$pkgname/default.gamma.lsp" + + # License (for the original source code) + install -d "$pkgdir/usr/share/licenses/$pkgname" + sed -n '1,/^$/p' src/view.cpp > "$pkgdir/usr/share/licenses/$pkgname/original" +} + +# vim:set ts=2 sw=2 et: -- cgit v1.2.3 From d2d3c7a1a927f6f87a557f1e8ed7bef15efa349d Mon Sep 17 00:00:00 2001 From: "coadde [Márcio Alexandre Silva Delgado]" Date: Wed, 3 Sep 2014 18:44:15 -0300 Subject: fixing abuse-libre source --- libre/abuse/PKGBUILD | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libre/abuse/PKGBUILD') diff --git a/libre/abuse/PKGBUILD b/libre/abuse/PKGBUILD index 6734cce30..ad68610e2 100644 --- a/libre/abuse/PKGBUILD +++ b/libre/abuse/PKGBUILD @@ -19,9 +19,9 @@ conflicts=($_pkgname) depends=('gcc-libs' 'libgl' 'sdl_mixer' 'glu' 'desktop-file-utils') makedepends=('gendesk' 'mesa-libgl' 'glu') install="$pkgname.install" -mksource=("http://$pkgname.zoy.org/raw-attachment/wiki/download/$_pkgname-$pkgver.tar.gz" +mksource=("http://$pkgname.zoy.org/raw-attachment/wiki/download/$pkgname-$pkgver.tar.gz" 'non-claudio.patch') -source=("https://repo.parabolagnulinux.org/other/$pkgname/$pkgname-$pkgver.tar.gz" +source=("https://repo.parabolagnulinux.org/other/$_pkgname/$_pkgname-$pkgver.tar.gz" "$pkgname.sh" "default.${pkgname}rc" 'default.gamma.lsp') -- cgit v1.2.3 From f4ad8840b1675f8313f3efda3b114c4db297f2db Mon Sep 17 00:00:00 2001 From: "coadde [Márcio Alexandre Silva Delgado]" Date: Wed, 3 Sep 2014 18:51:06 -0300 Subject: fixing abuse-libre source dir --- libre/abuse/PKGBUILD | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libre/abuse/PKGBUILD') diff --git a/libre/abuse/PKGBUILD b/libre/abuse/PKGBUILD index ad68610e2..06e24605c 100644 --- a/libre/abuse/PKGBUILD +++ b/libre/abuse/PKGBUILD @@ -41,20 +41,20 @@ mksource() { } prepare() { - cd "$pkgname-$pkgver" + cd "$_pkgname-$pkgver" gendesk -n -f --pkgname "$pkgname" --pkgdesc "$pkgdesc" } build() { - cd "$pkgname-$pkgver" + cd "$_pkgname-$pkgver" ./configure --prefix=/usr --with-assetdir="/usr/share/$pkgname/orig" --with-x make } package() { - cd "$pkgname-$pkgver" + cd "$_pkgname-$pkgver" make DESTDIR="$pkgdir" install -- cgit v1.2.3 From c2775ae80fc3122d1284308fa3fa5ac5822f3e5f Mon Sep 17 00:00:00 2001 From: "coadde [Márcio Alexandre Silva Delgado]" Date: Wed, 3 Sep 2014 18:59:15 -0300 Subject: fixing pkgrel on abuse --- libre/abuse/PKGBUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libre/abuse/PKGBUILD') diff --git a/libre/abuse/PKGBUILD b/libre/abuse/PKGBUILD index 06e24605c..c91b24f76 100644 --- a/libre/abuse/PKGBUILD +++ b/libre/abuse/PKGBUILD @@ -9,7 +9,7 @@ pkgname=abuse _pkgname=$pkgname-libre pkgver=0.8 -pkgrel=4 +pkgrel=4.parabola1 pkgdesc='Side-scroller action game that pits you against ruthless alien killers, without nonfree claudio support' arch=('x86_64' 'i686' 'mips64el') url="http://$pkgname.zoy.org/" -- cgit v1.2.3