summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander F Rødseth2015-06-10 15:03:34 +0200
committerAlexander F Rødseth2015-06-10 15:03:34 +0200
commitde0797c69f802825011c2aa80b0567e21d49dcfb (patch)
treeb8aa01703bcf24891e2cff89caf4d671461d1a25
downloadaur-de0797c69f802825011c2aa80b0567e21d49dcfb.tar.gz
Initial import
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD34
2 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..80c01bd9f1f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = battlestar
+ pkgdesc = Programming language for creating tiny executables
+ pkgver = 0.3
+ pkgrel = 1
+ url = http://github.com/xyproto/battlestar
+ arch = x86_64
+ arch = i686
+ license = MIT
+ makedepends = go
+ makedepends = git
+ depends = yasm
+ depends = gcc
+ depends = elfkickers
+ optdepends = dosbox: for running 16-bit programs
+ source = git://github.com/xyproto/battlestar.git#tag=0.3
+ md5sums = SKIP
+
+pkgname = battlestar
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a964d1bbae5
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Alexander Rødseth <rodseth@gmail.com>
+
+pkgname=battlestar
+pkgver=0.3
+pkgrel=1
+pkgdesc='Programming language for creating tiny executables'
+arch=('x86_64' 'i686')
+url='http://github.com/xyproto/battlestar'
+license=('MIT')
+makedepends=('go' 'git')
+depends=('yasm' 'gcc' 'elfkickers')
+optdepends=('dosbox: for running 16-bit programs')
+source=("git://github.com/xyproto/battlestar.git#tag=$pkgver")
+md5sums=('SKIP')
+
+build() {
+ make -C "$pkgname"
+}
+
+package() {
+ cd "$pkgname"
+
+ make install DESTDIR="$pkgdir"
+ install -d "$pkgdir/usr/share/doc/$pkgname"
+ cp -r samples "$pkgdir/usr/share/doc/$pkgname/"
+ cp -r samples64 "$pkgdir/usr/share/doc/$pkgname/"
+ cp -r samples32 "$pkgdir/usr/share/doc/$pkgname/"
+ cp -r samples16 "$pkgdir/usr/share/doc/$pkgname/"
+ cp -r helloworld "$pkgdir/usr/share/doc/$pkgname/"
+ install -Dm644 tutorial.md "$pkgdir/usr/share/doc/$pkgname/tutorial.md"
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et: