summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Krause2017-10-16 23:25:18 +0200
committerChristian Krause2017-10-16 23:25:18 +0200
commit127f50202162610d2a3de05ef5128fdbc87cd98a (patch)
treeccdde231855d8ad1aedbee6c4f1e15913a6d2cf0
downloadaur-127f50202162610d2a3de05ef5128fdbc87cd98a.tar.gz
fetlang-git-r216.73a78ad-1
-rw-r--r--.SRCINFO20
-rw-r--r--.gitignore1
-rw-r--r--PKGBUILD55
3 files changed, 76 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..4e28e4fd82f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+# Generated by mksrcinfo v8
+# Mon Oct 16 21:24:39 UTC 2017
+pkgbase = fetlang-git
+ pkgdesc = fetish-themed programming language
+ pkgver = r216.73a78ad
+ pkgrel = 1
+ url = https://github.com/Property404/fetlang
+ arch = i686
+ arch = x86_64
+ license = custom
+ makedepends = boost
+ makedepends = meson
+ depends = boost-libs
+ provides = fetlang
+ conflicts = fetlang
+ source = fetlang-git::git+https://github.com/Property404/fetlang
+ md5sums = SKIP
+
+pkgname = fetlang-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..42ab3cf03f2
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+*.pkg.tar*
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9d09e4684a1
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,55 @@
+# Maintainer: Christian Krause ("wookietreiber") <christian.krause@mailbox.org>
+
+pkgname=fetlang-git
+
+pkgver=r216.73a78ad
+pkgrel=1
+pkgdesc="fetish-themed programming language"
+arch=('i686' 'x86_64')
+url="https://github.com/Property404/fetlang"
+license=('custom')
+
+depends=('boost-libs')
+makedepends=('boost' 'meson')
+
+conflicts=('fetlang')
+provides=('fetlang')
+
+source=("$pkgname::git+https://github.com/Property404/fetlang")
+
+md5sums=('SKIP')
+
+pkgver() {
+ cd $srcdir/$pkgname
+
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ mkdir -p $srcdir/$pkgname/build
+}
+
+build() {
+ cd $srcdir/$pkgname/build
+
+ meson setup \
+ --prefix=/usr \
+ --buildtype=release \
+ ../src
+
+ ninja
+}
+
+check() {
+ cd $srcdir/$pkgname/build
+
+ ninja test
+}
+
+package() {
+ cd $srcdir/$pkgname/build
+
+ DESTDIR=$pkgdir ninja install
+
+ install -Dm644 ../LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+}