diff options
author | encadyma | 2020-03-30 13:18:41 -0700 |
---|---|---|
committer | encadyma | 2020-03-30 13:18:41 -0700 |
commit | 803b20e070d06edb015176de6d4ffae499b6569c (patch) | |
tree | fa7b4ae90121aec6f951980b16befdd53a490877 | |
parent | c1d0c22917042ee6dfdac9feb810a580c43b3ca0 (diff) | |
download | aur-803b20e070d06edb015176de6d4ffae499b6569c.tar.gz |
Update PKGBUILD to be consistent with usc-git
* Bump revision ver => 3
* Specified versions of dependencies in PKGBUILD
* Add install script to notify user during install/uninstall
* Allow +rwx to /opt/usc to allow user config (temp fix)
* Rename binary from unnamed-sdvx-clone -> usc-game
-rw-r--r-- | .SRCINFO | 11 | ||||
-rw-r--r-- | .gitignore | 9 | ||||
-rw-r--r-- | PKGBUILD | 35 | ||||
-rw-r--r-- | unnamed-sdvx-clone.install | 15 |
4 files changed, 57 insertions, 13 deletions
@@ -1,20 +1,21 @@ pkgbase = unnamed-sdvx-clone pkgdesc = A game based on K-Shoot MANIA and Sound Voltex pkgver = v0.4 - pkgrel = 2 + pkgrel = 3 url = https://github.com/Drewol/unnamed-sdvx-clone + install = unnamed-sdvx-clone.install arch = x86_64 license = MIT makedepends = cmake makedepends = git - depends = freetype2 + depends = freetype2>=2.6.5 depends = libogg depends = libvorbis - depends = sdl2 + depends = sdl2>=2.0.9 depends = zlib - depends = libpng + depends = libpng>=1.6 depends = libjpeg - depends = libarchive + depends = libarchive>=3.3.3 depends = mesa depends = openssl conflicts = unnamed-sdvx-clone-git diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..a072ac51f9e7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +# Ignore everything +* + +# Whitelist of files +!.gitignore +!PKGBUILD +!.SRCBUILD +!Main.cfg +!*.install @@ -4,14 +4,24 @@ _pkgexec=usc-game pkgname=unnamed-sdvx-clone _pkgnum='0.4' pkgver="v$_pkgnum" -pkgrel=2 +pkgrel=3 -pkgdesc="A game based on K-Shoot MANIA and Sound Voltex" +pkgdesc='A game based on K-Shoot MANIA and Sound Voltex' arch=('x86_64') license=('MIT') -url="https://github.com/Drewol/unnamed-sdvx-clone" +url='https://github.com/Drewol/unnamed-sdvx-clone' -depends=(freetype2 libogg libvorbis sdl2 zlib libpng libjpeg libarchive mesa openssl) +depends=('freetype2>=2.6.5' + 'libogg' + 'libvorbis' + 'sdl2>=2.0.9' + 'zlib' + 'libpng>=1.6' + 'libjpeg' + 'libarchive>=3.3.3' + 'mesa' + 'openssl') +install="$pkgname.install" makedepends=(cmake git) conflicts=(unnamed-sdvx-clone-git) @@ -25,24 +35,33 @@ sha256sums=( ) prepare() { - cd "$pkgname" + cd "$srcdir/$pkgname" git submodule update --init --recursive } build() { - cd "$pkgname" + cd "$srcdir/$pkgname" cmake -DCMAKE_BUILD_TYPE=Release . make } package() { + cd "$srcdir/$pkgname" + install -d "$pkgdir/opt/$pkgname" - cp -a "$pkgname/bin/." "$pkgdir/opt/$pkgname" + cp -a "bin/." "$pkgdir/opt/$pkgname" # chmod 755 the executable chmod 755 "$pkgdir/opt/$pkgname/$_pkgexec" + # Copy the license + install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md" + # Link the binary to /usr/bin mkdir -p "$pkgdir/usr/bin" - ln -s "/opt/$pkgname/$_pkgexec" "$pkgdir/usr/bin/$pkgname" + ln -s "/opt/$pkgname/$_pkgexec" "$pkgdir/usr/bin/$_pkgexec" + + chmod 777 "$pkgdir/opt/$pkgname" + chmod 777 "$pkgdir/opt/$pkgname/skins" + chmod 777 "$pkgdir/opt/$pkgname/skins/Default" } diff --git a/unnamed-sdvx-clone.install b/unnamed-sdvx-clone.install new file mode 100644 index 000000000000..c422560d1045 --- /dev/null +++ b/unnamed-sdvx-clone.install @@ -0,0 +1,15 @@ +post_install() { + echo "---------------------------------------------------------------" + echo "Installed unnamed-sdvx-clone to /opt/unnamed-sdvx-clone/" + echo "---------------------------------------------------------------" +} + +post_remove() { + echo "---------------------------------------------------------------" + echo "Uninstalled unnamed-sdvx-clone." + echo "Please be aware that any untracked files are still present" + echo "in /opt/unnamed-sdvx-clone/" + echo "You will need to delete them manually if you want" + echo "them permanently removed." + echo "---------------------------------------------------------------" +} |