diff options
author | George Rawlinson | 2021-08-21 22:04:12 +0000 |
---|---|---|
committer | George Rawlinson | 2021-08-21 22:04:12 +0000 |
commit | 65c9675b1eea548e759af0361e373c184401669b (patch) | |
tree | 041bc035ca39d77f868a62b42d3beb5a248a7ff8 | |
download | aur-65c9675b1eea548e759af0361e373c184401669b.tar.gz |
addpkg: mightymike 3.0.0-1
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | PKGBUILD | 63 | ||||
-rw-r--r-- | mightymike.desktop | 11 | ||||
-rwxr-xr-x | mightymike.sh | 4 |
4 files changed, 100 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..dec9f527002c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +pkgbase = mightymike + pkgdesc = High Powered Action Rescue in a Toy Store Gone Mad + pkgver = 3.0.0 + pkgrel = 1 + url = https://github.com/jorio/mightymike + arch = x86_64 + license = custom:CC-BY-NC-SA-4.0 + makedepends = cmake + makedepends = git + depends = sdl2 + depends = glu + depends = hicolor-icon-theme + source = mightymike::git+https://github.com/jorio/mightymike.git#tag=v3.0.0 + source = git+https://github.com/jorio/Pomme.git + source = mightymike.desktop + source = mightymike.sh + b2sums = SKIP + b2sums = SKIP + b2sums = 6cd424b2dc3628731e42ae22917cd51e2eb47178bb79ee5c77ae07f3cde10f9404b53c5bf4c2f444aac0ecb3363e5141fc9fd206307a1a2bf819315c5900dec8 + b2sums = f5a0b6aaf304db6e04e8487c84677f8dc1dc877ce384ef24faece43484c4872f2422f3c4dd016b3ec804d47d1635e6b289bc4f9d6d32a98e65063ef275792e34 + +pkgname = mightymike diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..adb623e8a025 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,63 @@ +# Maintainer: George Rawlinson <george@rawlinson.net.nz> + +pkgname=mightymike +pkgver=3.0.0 +pkgrel=1 +pkgdesc="High Powered Action Rescue in a Toy Store Gone Mad" +arch=('x86_64') +url="https://github.com/jorio/mightymike" +license=('custom:CC-BY-NC-SA-4.0') +depends=('sdl2' 'glu' 'hicolor-icon-theme') +makedepends=('cmake' 'git') +source=( + "$pkgname::git+$url.git#tag=v$pkgver" + 'git+https://github.com/jorio/Pomme.git' + "$pkgname.desktop" + "$pkgname.sh" +) +b2sums=('SKIP' + 'SKIP' + '6cd424b2dc3628731e42ae22917cd51e2eb47178bb79ee5c77ae07f3cde10f9404b53c5bf4c2f444aac0ecb3363e5141fc9fd206307a1a2bf819315c5900dec8' + 'f5a0b6aaf304db6e04e8487c84677f8dc1dc877ce384ef24faece43484c4872f2422f3c4dd016b3ec804d47d1635e6b289bc4f9d6d32a98e65063ef275792e34') + +prepare() { + cd "$pkgname" + git submodule init + git config submodule.Pomme.url ../Pomme + git submodule update + cmake -S . -B build \ + -DCMAKE_BUILD_TYPE=None \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -Wno-dev +} + +build() { + cd "$pkgname" + cmake --build build +} + +package() { + cd "$pkgname" + + # move binary & assets + install -vd "$pkgdir/usr/lib/$pkgname" + mv -v build/{Data,MightyMike} "$pkgdir/usr/lib/$pkgname" + + # wrapper script for $PATH execution + install -vDm755 "$srcdir/$pkgname.sh" "$pkgdir/usr/bin/$pkgname" + + # desktop file & icon + install -vDm644 -t "$pkgdir/usr/share/applications" "$srcdir/$pkgname.desktop" + install -vDm644 cmake/MightyMike512.png \ + "$pkgdir/usr/share/icons/hicolor/512x512/apps/$pkgname.png" + + # documentation + install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" *.md + rm -vf "$pkgdir/usr/share/doc/$pkgname/LICENSE.md" + cp -vr docs "$pkgdir/usr/share/doc/$pkgname" + sed -e "s/@PROJECT_VERSION@/$pkgver/" cmake/ReadMe.txt.in \ + > "$pkgdir/usr/share/doc/$pkgname/README" + + # license + install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE.md +} diff --git a/mightymike.desktop b/mightymike.desktop new file mode 100644 index 000000000000..d2b8be480e20 --- /dev/null +++ b/mightymike.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Type=Application +Version=1.0 +Name=Mighty Mike +Comment= +Icon=mightymike +Exec=/usr/lib/mightymike/MightyMike +Path=/usr/lib/mightymike +Terminal=false +Categories=Game; +Encoding=UTF-8 diff --git a/mightymike.sh b/mightymike.sh new file mode 100755 index 000000000000..140c87034c83 --- /dev/null +++ b/mightymike.sh @@ -0,0 +1,4 @@ +#!/usr/bin/sh + +cd /usr/lib/mightymike +exec /usr/lib/mightymike/MightyMike |