secret
Created

Patches for <https://aur.archlinux.org/packages/tinyandbig-hib/>, apply with `patch PKGBUILD < PKGBUILD.patch && patch tinyandbig-hib.install < tinyandbig-hib.install.patch`.

  • Download Gist
PKGBUILD.patch
Diff
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
@@ -8,7 +8,7 @@
url='http://www.tinyandbig.com/'
arch=('i686' 'x86_64')
license=('custom:commercial')
-depends=('sdl' 'libgl' 'nvidia-cg-toolkit' 'openal' 'hicolor-icon-theme')
+depends=('libgl' 'nvidia-cg-toolkit' 'openal' 'hicolor-icon-theme' 'xdg-utils')
install="$pkgname.install"
options=('!strip' '!upx')
PKGEXT='.pkg.tar'
@@ -19,20 +19,28 @@
md5sums=('47de47b0b22e75f885e1acfe508cf5c5'
'8a852ad5cac241c5e871b3da67dd0c78')
+build() {
+ cd "$srcdir"
+ bsdtar xf data.tar.lzma
+}
+
package() {
- cd $pkgdir
+ cd "$pkgdir"
# Install game files
- bsdtar xf "$srcdir/data.tar.lzma"
- mkdir -p "opt/"
- mv "usr/local/games/tinyandbig-episode1" "opt/"
+ mkdir opt usr
+ cp -Rl "$srcdir"/usr/local/games/tinyandbig-episode1 opt
+ cp -Rl "$srcdir"/usr/share usr
+
+ # legal
+ install -Dm644 opt/tinyandbig-episode1/license.txt usr/share/licenses/$pkgname/LICENSE
# Remove files that are not needed
[ $CARCH == "i686" ] && _arch=32 && _other=64 || _arch=64 && _other=32
rm "opt/tinyandbig-episode1/"{tinyandbig-launcher,license.txt}
rm "opt/tinyandbig-episode1/bin$_arch"/{libCg.so,libCgGL.so}
rm -r "opt/tinyandbig-episode1/bin$_other"
- rm -r usr/{local,share/{lintian,applications}}
+ rm -r usr/share/{lintian,applications}
# Install launch script
echo -e "#!/bin/sh\ncd /opt/tinyandbig-episode1/ && ./bin$_arch/tinyandbig" \
tinyandbig-hib.install.patch
Diff
1 2 3 4 5 6 7 8
@@ -1,7 +1,4 @@
-
post_install() {
- update-desktop-database -q
- update-mime-database usr/share/mime &> /dev/null
xdg-icon-resource forceupdate
if (pacman -Q mesa-libgl 2>/dev/null 1>2); then cat <<EOT

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.