summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Heidelberg2014-04-18 23:42:00 +0200
committerMarkus Heidelberg2015-06-26 23:33:14 +0200
commitfcfe6ee7a827d94439ddd0bdb68060ceb4c73087 (patch)
tree11b56eb4dc7f7c0f73414ce2d037eb6d5b257d9d
parent0c5768861b5f53aa19e750b2166ce5e278aba5c3 (diff)
downloadaur-fcfe6ee7a827d94439ddd0bdb68060ceb4c73087.tar.gz
koules 1.4-4: add a .desktop file + cleanup
- add .desktop file for menu entry - do not create man page symlinks to fix the build -> use "make MANSRCSUFFIX=6" this fixes subsequent "makepkg" invocations - modify "Iconfig" instead of the generated "Makefile" for adding Arch Linux specific CFLAGS, now the flags are included in each of the three Makefiles ** Manually imported from AUR 3 **
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD28
-rw-r--r--koules.desktop9
3 files changed, 25 insertions, 16 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 1f016f58e016..2f4bf967974b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = koules
pkgdesc = A fast arcade game based on fundamental law of bodies attraction
pkgver = 1.4
- pkgrel = 3
+ pkgrel = 4
url = http://www.ucw.cz/~hubicka/koules/English/
arch = i686
arch = x86_64
@@ -14,8 +14,10 @@ pkgbase = koules
depends = libxext
source = http://www.ucw.cz/~hubicka/koules/packages/koules1.4-src.tar.gz
source = koules-1.4-gcc3.patch
+ source = koules.desktop
md5sums = 0a5ac9e57c8b72e9fc200bc98273235c
md5sums = ccc92d4ab7d61ca482d30192a5ee83ec
+ md5sums = fb3cd393464214643c239ac4350f963a
pkgname = koules
diff --git a/PKGBUILD b/PKGBUILD
index a473450f420b..a5b9bf6cb70f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
# Contributor: Gyo <nucleogeek_at_gmail_dot_com>
pkgname=koules
pkgver=1.4
-pkgrel=3
+pkgrel=4
pkgdesc="A fast arcade game based on fundamental law of bodies attraction"
arch=('i686' 'x86_64')
url="http://www.ucw.cz/~hubicka/koules/English/"
@@ -10,9 +10,11 @@ license=('GPL')
depends=('dialog' 'libx11' 'libxext')
makedepends=('imake' 'xextproto' 'xproto')
source=(http://www.ucw.cz/~hubicka/koules/packages/$pkgname$pkgver-src.tar.gz
- $pkgname-$pkgver-gcc3.patch)
+ $pkgname-$pkgver-gcc3.patch
+ koules.desktop)
md5sums=('0a5ac9e57c8b72e9fc200bc98273235c'
- 'ccc92d4ab7d61ca482d30192a5ee83ec')
+ 'ccc92d4ab7d61ca482d30192a5ee83ec'
+ 'fb3cd393464214643c239ac4350f963a')
prepare() {
cd "$srcdir/$pkgname$pkgver"
@@ -22,24 +24,18 @@ prepare() {
build() {
cd "$srcdir/$pkgname$pkgver"
- # some sources modifications
+ # some source modifications
sed -i \
-e "/^KOULESDIR/s:=.*:=/usr/bin:" \
- -e "/^SOUNDDIR/s:=.*:=/usr/share/$pkgname:" Iconfig
- sed -i \
- -e "s:/usr/local/bin:/usr/bin:" koules
+ -e "/^SOUNDDIR/s:=.*:=/usr/share/$pkgname:" \
+ -e "/SYSDEFS/s:=.*:= ${CFLAGS}:" Iconfig
sed -i \
+ -e "s:/usr/local/bin:/usr/bin:" \
-e 's:exec.*tcl:exec xkoules -M "$@":' koules
- ln -s xkoules.6 xkoules.man
- ln -s xkoules.6 xkoules._man
-
- # generate makefiles and building
+ # generate makefiles, then build
xmkmf -a
- sed -i \
- -e '/SYSDEFS =/d' \
- -e "/^ *CFLAGS =/s:$: ${CFLAGS}:" Makefile
- make
+ make MANSRCSUFFIX=6
}
package() {
@@ -49,4 +45,6 @@ package() {
install -Dm755 koules.sndsrv.linux "$pkgdir/usr/share/koules/koules.sndsrv.linux"
install -m644 sounds/* "$pkgdir/usr/share/koules"
install -Dm644 xkoules.6 "$pkgdir/usr/share/man/man6/xkoules.6"
+ install -Dm644 Koules.xpm "$pkgdir/usr/share/pixmaps/koules.xpm"
+ install -Dm644 "$srcdir/koules.desktop" "$pkgdir/usr/share/applications/koules.desktop"
}
diff --git a/koules.desktop b/koules.desktop
new file mode 100644
index 000000000000..6f86392eb938
--- /dev/null
+++ b/koules.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Type=Application
+Version=1.0
+Name=Koules
+GenericName=Arcade game
+GenericName[de]=Arcade-Spiel
+Icon=/usr/share/pixmaps/koules.xpm
+Exec=koules
+Categories=Game;ArcadeGame;