diff options
author | buckket | 2017-03-16 22:45:02 +0100 |
---|---|---|
committer | buckket | 2017-03-16 22:45:02 +0100 |
commit | 8f54b10eadf264fbbc2326978000c79b83d5ecb3 (patch) | |
tree | 8447aa814cca30165a20a9244b6cb6997cbeb47b | |
download | aur-8f54b10eadf264fbbc2326978000c79b83d5ecb3.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 40 | ||||
-rwxr-xr-x | libcirc | 8 |
3 files changed, 69 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..b162828bd8ca --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +# Generated by mksrcinfo v8 +# Thu Mar 16 21:41:42 UTC 2017 +pkgbase = liberation-circuit-git + pkgdesc = A real-time strategy/programming game + pkgver = v1.0.r17.ge594461 + pkgrel = 1 + url = https://github.com/linleyh/liberation-circuit + arch = x86_64 + arch = i686 + license = GPL3 + makedepends = redo + depends = allegro + provides = liberation-circuit + conflicts = liberation-circuit + source = liberation-circuit-git::git+https://github.com/linleyh/liberation-circuit.git + source = libcirc + sha256sums = SKIP + sha256sums = 2560ef7dd15ec609177b2330e075d6414421b4a4ed857873675cd748b511d54a + +pkgname = liberation-circuit-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..dc6f0bc85763 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: buckket <buckket@cock.li> + +pkgname=liberation-circuit-git +_pkgname=liberation-circuit +pkgver=v1.0.r17.ge594461 +pkgrel=1 +pkgdesc="A real-time strategy/programming game" +arch=("x86_64" "i686") +license=("GPL3") +url="https://github.com/linleyh/liberation-circuit" +depends=("allegro") +makedepends=("redo") +conflicts=("liberation-circuit") +provides=("liberation-circuit") + +source=("${pkgname}::git+https://github.com/linleyh/liberation-circuit.git" + "libcirc") +sha256sums=('SKIP' + '2560ef7dd15ec609177b2330e075d6414421b4a4ed857873675cd748b511d54a') + +pkgver() { + cd "${pkgname}" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd "${pkgname}" + redo +} + +package() { + cd liberation-circuit-git + install -Dm755 ../libcirc "${pkgdir}/usr/bin/libcirc" + install -dm755 "${pkgdir}/usr/share/games/${_pkgname}" + install -Dm755 src/g_game "${pkgdir}/usr/share/games/${_pkgname}/libcirc" + rm bin/libcirc + rm bin/libcirc.do + cp -rf bin/* "${pkgdir}/usr/share/games/${_pkgname}" +} + diff --git a/libcirc b/libcirc new file mode 100755 index 000000000000..ee0d45bf37e1 --- /dev/null +++ b/libcirc @@ -0,0 +1,8 @@ +#!/usr/bin/sh + +# liberation-circuit start script +# Currently there is no way to explicitly specify the asset folder location +# so we have to switch the working directory before starting the game. + +cd /usr/share/games/liberation-circuit +./libcirc |