[arch-commits] Commit in kobodeluxe/trunk (PKGBUILD kobodeluxe.install)
Alexander Rødseth
arodseth at gemini.archlinux.org
Fri Feb 11 09:56:41 UTC 2022
Date: Friday, February 11, 2022 @ 09:56:40
Author: arodseth
Revision: 1131818
Apply path fix from Gentoo
Modified:
kobodeluxe/trunk/PKGBUILD
Deleted:
kobodeluxe/trunk/kobodeluxe.install
--------------------+
PKGBUILD | 67 +++++++++++++++++++++++++--------------------------
kobodeluxe.install | 15 -----------
2 files changed, 34 insertions(+), 48 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-02-11 08:57:27 UTC (rev 1131817)
+++ PKGBUILD 2022-02-11 09:56:40 UTC (rev 1131818)
@@ -1,48 +1,49 @@
-# Maintainer: Eric Bélanger <eric at archlinux.org>
+# Maintainer: Alexander F. Rødseth <xyproto at archlinux.org>
+# Contributor: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Eric Bélanger <eric at archlinux.org>
pkgname=kobodeluxe
pkgver=0.5.1
-pkgrel=8
-pkgdesc="An enhanced version of Akira Higuchi's game XKobo, an addictive space shoot'em up"
-arch=('x86_64')
-url="http://www.olofson.net/kobodl/"
-license=('GPL' 'LGPL')
-depends=('sdl_image' 'hicolor-icon-theme')
-install=kobodeluxe.install
-source=(http://www.olofson.net/kobodl/download/KoboDeluxe-${pkgver}.tar.gz
- kobodeluxe-gcc-4.3.patch kobodeluxe-0.5.1-glibc2.10.patch)
-sha1sums=('12abe182ccde52050cd23077092d0424d25c3e75'
- '274dc8e7909bc6f9fab31306c85d992af8b62674'
- '9d1b3b8cef4a16b6a082fed9f93f1dc12b2a3be0')
+pkgrel=10
+pkgdesc='3rd person scrolling 2D shooter'
+arch=(x86_64)
+url='http://www.olofson.net/kobodl/'
+license=(GPL LGPL)
+depends=(hicolor-icon-theme sdl_image)
+source=("http://www.olofson.net/kobodl/download/KoboDeluxe-${pkgver}.tar.gz"
+ kobodeluxe-gcc-4.3.patch
+ kobodeluxe-0.5.1-glibc2.10.patch)
+b2sums=('7dd17b4613a467428b09274f7374b921c2d2b40cfed83b019b665e61240bfa097160e3bd4ca09a48264b1ec02653a8ef6218d753dc5631fa8d2f9001856fcb91'
+ '566b474b40eea4bf7abb3d414beb3bac38576a534ac105db8814eb890f5ad2ffd77d245a083395c60b4b73f07e0cadf52e6c40befb0664254da7f4f168f1d559'
+ 'c539d01a3f3dbedaf90503aba74a4a54754fb9d9e82dace7b0b6a5832aed757c260415816cf41ff75a3cfdee3b7616303f031647706f7b514e98c0e85a6beb01')
prepare() {
- cd KoboDeluxe-${pkgver}
- tar -xf icons.tar.gz
- patch -p0 -i "${srcdir}/kobodeluxe-gcc-4.3.patch"
- patch -p0 -i "${srcdir}/kobodeluxe-0.5.1-glibc2.10.patch"
+ cd KoboDeluxe-$pkgver
+ patch -p0 -i ../kobodeluxe-gcc-4.3.patch
+ patch -p0 -i ../kobodeluxe-0.5.1-glibc2.10.patch
+ tar xf icons.tar.gz
+ # Fix paths, thanks Gentoo!
+ sed -i \
+ -e 's:\$(datadir)/kobo-deluxe:$(datadir)/kobodeluxe:' \
+ -e 's:\$(sharedstatedir)/kobo-deluxe/scores:$(localstatedir)/kobodeluxe:' \
+ configure
+ sed -i -e 's:kobo-deluxe:kobodeluxe:' data/{gfx,sfx}/Makefile.in
}
build() {
- cd KoboDeluxe-${pkgver}
- ./configure --prefix=/usr --localstatedir=/var --sharedstatedir=/var/games
+ cd KoboDeluxe-$pkgver
+ ./configure --localstatedir=/var --prefix=/usr --sharedstatedir=/var/games
make
}
package() {
- cd KoboDeluxe-${pkgver}
- make DESTDIR="${pkgdir}" install
-
- install -D -m644 icons/KDE/kobo-deluxe.desktop "${pkgdir}/usr/share/applications/kobo-deluxe.desktop"
+ cd KoboDeluxe-$pkgver
+ DESTDIR="$pkgdir" make install
+ ln -s /usr/bin/kobodl "$pkgdir/usr/bin/kobodeluxe"
+ install -D -m644 icons/KDE/kobo-deluxe.desktop \
+ "$pkgdir/usr/share/applications/kobodeluxe.desktop"
for i in 16 22 32 48 64 128 ; do
- install -D -m644 icons/KDE/icons/${i}x${i}/kobodl.png "${pkgdir}/usr/share/icons/hicolor/${i}x${i}/apps/kobodl.png"
+ install -Dm644 icons/KDE/icons/${i}x$i/kobodl.png \
+ "$pkgdir/usr/share/icons/hicolor/${i}x$i/apps/kobodl.png"
done
-
- chown root:games "${pkgdir}/usr/bin/kobodl"
- chmod 2755 "${pkgdir}/usr/bin/kobodl"
- chown root:games "${pkgdir}/var/games"
- chmod 775 "${pkgdir}/var/games"
- chown root:games "${pkgdir}/var/games/kobo-deluxe"
- chmod 775 "${pkgdir}/var/games/kobo-deluxe"
- chown root:games "${pkgdir}/var/games/kobo-deluxe/scores"
- chmod 775 "${pkgdir}/var/games/kobo-deluxe/scores"
}
Deleted: kobodeluxe.install
===================================================================
--- kobodeluxe.install 2022-02-11 08:57:27 UTC (rev 1131817)
+++ kobodeluxe.install 2022-02-11 09:56:40 UTC (rev 1131818)
@@ -1,15 +0,0 @@
-post_install() {
- post_upgrade
-}
-
-post_upgrade() {
- if [ -d usr/share/kobo-deluxe/kobo-deluxe/scores ] ; then
- mkdir -p var/games/kobo-deluxe/scores/
- for i in usr/share/kobo-deluxe/kobo-deluxe/scores/* ; do
- mv $i var/games/kobo-deluxe/scores/
- done
- rmdir usr/share/kobo-deluxe/kobo-deluxe/scores
- rmdir usr/share/kobo-deluxe/kobo-deluxe
- chgrp -R games var/games/kobo-deluxe/scores/
- fi
-}
More information about the arch-commits
mailing list