diff options
author | Julien Savard | 2013-12-29 23:09:37 -0500 |
---|---|---|
committer | Julien Savard | 2015-06-08 12:18:40 -0400 |
commit | 2f73119017fa9eb15492c2a44263df622c0f6a03 (patch) | |
tree | dc4a5fb66c5cd552ec2d6bfe7e501be7e5eada42 | |
download | aur-2f73119017fa9eb15492c2a44263df622c0f6a03.tar.gz |
Import to AUR4
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 43 | ||||
-rw-r--r-- | supersonicball.desktop | 11 | ||||
-rw-r--r-- | supersonicball.sh | 2 |
4 files changed, 77 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f7bf9b4102f2 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = supersonicball-git + pkgdesc = The crazy ball tunnel game + pkgver = 0 + pkgrel = 1 + url = http://julosoft.net/supersonicball/ + arch = any + license = GPL + makedepends = git + makedepends = zip + depends = love>=0.9.0 + provides = supersonicball + conflicts = supersonicball + source = supersonicball.desktop + source = supersonicball.sh + source = supersonicball-git::git://github.com/juju2143/supersonicball.git + sha1sums = 58f6d0a0058d81c8419a0cb65212a63515b95885 + sha1sums = 4515bad415633fce6174e54a871454c26af1848b + sha1sums = SKIP + +pkgname = supersonicball-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..fe0ac1f6d7d9 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,43 @@ +# Maintainer: Julien Savard <juju2143 at gmail dot com> + +pkgname=supersonicball-git +pkgver=0 +pkgrel=1 +pkgdesc="The crazy ball tunnel game" +arch=('any') +url="http://julosoft.net/supersonicball/" +license=('GPL') +depends=('love>=0.9.0') +makedepends=('git' 'zip') +conflicts=('supersonicball') +provides=('supersonicball') +source=(${pkgname%-git}.desktop + ${pkgname%-git}.sh + "$pkgname"::'git://github.com/juju2143/supersonicball.git') +sha1sums=('58f6d0a0058d81c8419a0cb65212a63515b95885' + '4515bad415633fce6174e54a871454c26af1848b' + 'SKIP') + +pkgver() { + cd "$srcdir/$pkgname" + git describe --long --tags | sed -E 's/([^-]*-g)/r\1/;s/-/./g' +} + +build() { + cd "$srcdir/$pkgname" + zip -r ${pkgname%-git}.love * +} + +package() { + sed "s/Version=git/Version=${pkgver}/" "${srcdir}/${pkgname%-git}.desktop" > "${srcdir}/${pkgname}.desktop" + + # Install Data + install -D -m755 "${srcdir}/${pkgname}/${pkgname%-git}.love" "${pkgdir}/usr/share/${pkgname%-git}/${pkgname%-git}.love" + install -D -m644 "${srcdir}/${pkgname}/README.md" "$pkgdir/usr/share/${pkgname%-git}/README" + + # Install Launcher + install -D -m755 "${srcdir}/${pkgname%-git}.sh" "${pkgdir}/usr/bin/${pkgname%-git}" + + # Install Desktop + install -D -m644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname%-git}.desktop" +} diff --git a/supersonicball.desktop b/supersonicball.desktop new file mode 100644 index 000000000000..5f19c311ed82 --- /dev/null +++ b/supersonicball.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Version=git +Type=Application +Icon=gnome-mime-application-x-love-game +Exec=supersonicball +Terminal=false +StartupNotify=false +Name=Supersonic Ball +GenericName=Arcade Game +Comment=The crazy ball tunnel game +Categories=Game;ArcadeGame; diff --git a/supersonicball.sh b/supersonicball.sh new file mode 100644 index 000000000000..e4421f17e3b7 --- /dev/null +++ b/supersonicball.sh @@ -0,0 +1,2 @@ +#!/bin/bash +love /usr/share/supersonicball/supersonicball.love |