[arch-commits] Commit in bomberclone/trunk (PKGBUILD)
Alexander Rødseth
arodseth at archlinux.org
Tue Feb 19 10:26:28 UTC 2019
Date: Tuesday, February 19, 2019 @ 10:26:27
Author: arodseth
Revision: 434464
upgpkg: bomberclone 0.11.9-7
Modified:
bomberclone/trunk/PKGBUILD
----------+
PKGBUILD | 36 ++++++++++++++++++++----------------
1 file changed, 20 insertions(+), 16 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-02-19 10:15:03 UTC (rev 434463)
+++ PKGBUILD 2019-02-19 10:26:27 UTC (rev 434464)
@@ -1,4 +1,4 @@
-# Maintainer: Alexander F Rødseth <xyproto at archlinux.org>
+# Maintainer: Alexander F. Rødseth <xyproto at archlinux.org>
# Contributor: duck <duck at vmail.me>
# Contributor: Lukas Fleischer <lfleischer at archlinux.org>
# Contributor: arjan <arjan at archlinux.org>
@@ -6,25 +6,26 @@
pkgname=bomberclone
pkgver=0.11.9
-pkgrel=6
+pkgrel=7
pkgdesc='Clone of the game Atomic Bomberman'
-arch=('x86_64')
-url='http://www.bomberclone.de/'
-license=('GPL')
-depends=('sdl_mixer' 'sdl_image')
-makedepends=('gendesk')
+arch=(x86_64)
+url='https://www.bomberclone.de/core.html'
+license=(GPL)
+depends=(sdl_mixer sdl_image)
+makedepends=(gendesk)
source=("https://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz"
- 'bomberclone-0.11.9-build-fix.patch'
- 'http://sourceforge.net/p/bomberclone/patches/9/attachment/snprintf.diff')
+ bomberclone-0.11.9-build-fix.patch
+ 'https://sourceforge.net/p/bomberclone/patches/9/attachment/snprintf.diff')
sha256sums=('71eb2788f95c136fd3eecaee15d05a80dea07221b5b3530dc869e433e02ff68d'
'ee8bbff24f261951379ca55c510df04deb5a0fd17c2c3149b63bbcaf1cfb0549'
'3df79e4c87f94d3a2065583fd92a5129e57f35bfb949c92870ed32968acfe54e')
prepare() {
- gendesk -f -n --pkgname "$pkgname" --pkgdesc "$pkgdesc" --name BomberClone
-
cd "$pkgname-$pkgver"
+ # generate a desktop shortcut
+ gendesk -f -n --pkgname $pkgname --pkgdesc "$pkgdesc" --name BomberClone
+
# add build fix extracted from upstream CVS (fixes FS#26942)
patch -p0 -i ../bomberclone-0.11.9-build-fix.patch
@@ -36,17 +37,20 @@
cd "$pkgname-$pkgver"
./configure --prefix=/usr
- make CFLAGS="-lm -O2 `pkg-config sdl --cflags` $CFLAGS"
+ make CFLAGS="-O3 $(pkg-config --cflags --libs sdl) $CFLAGS -lm -w"
}
package() {
make -C "$pkgname-$pkgver" DESTDIR="$pkgdir" install
- # Desktop shortcut and icon
- install -Dm644 "$pkgname.desktop" \
+ # package desktop shortcut
+ install -Dm644 $pkgname-$pkgver/$pkgname.desktop \
"$pkgdir/usr/share/applications/$pkgname.desktop"
- install -Dm644 "$pkgdir/usr/share/games/$pkgname/pixmaps/$pkgname.png" \
+
+ # create a symlink to the icon
+ install -d "$pkgdir/usr/share/pixmaps"
+ ln -s "/usr/share/games/$pkgname/pixmaps/$pkgname.png" \
"$pkgdir/usr/share/pixmaps/$pkgname.png"
}
-# vim:set ts=2 sw=2 et:
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list