summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicholas Boyd Isacsson2020-06-26 00:12:23 +0200
committerNicholas Boyd Isacsson2020-06-26 00:12:23 +0200
commit6fff3a5341c81cfb23fab5b0f8f23b1cf2379a2a (patch)
treecc06b42c009d960c341576f7a6daa3bf2e4d406d
downloadaur-6fff3a5341c81cfb23fab5b0f8f23b1cf2379a2a.tar.gz
Initial commit
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD26
2 files changed, 41 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..04dfdc057af
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = cbonsai-git
+ pkgdesc = A bonsai tree generator, written in C using ncurses
+ pkgver = r40.afb6878
+ pkgrel = 1
+ url = https://gitlab.com/jallbrit/cbonsai
+ arch = any
+ license = GPL3
+ makedepends = git
+ depends = gcc
+ provides = cbonsai
+ source = cbonsai::git+https://gitlab.com/jallbrit/cbonsai.git
+ md5sums = SKIP
+
+pkgname = cbonsai-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..5aa8e758b30
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,26 @@
+# Maintainer: Nicholas Boyd Isacsson <nicholas@isacsson.se>
+
+_pkgname='cbonsai'
+pkgname="${_pkgname}-git"
+pkgver=r40.afb6878
+pkgrel=1
+pkgdesc='A bonsai tree generator, written in C using ncurses'
+arch=('any')
+url="https://gitlab.com/jallbrit/${_pkgname}"
+license=('GPL3')
+depends=('gcc')
+makedepends=('git')
+provides=('cbonsai')
+source=("${_pkgname}::git+${url}.git")
+md5sums=(SKIP)
+
+pkgver() {
+ cd "${_pkgname}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+package() {
+ cd "${srcdir}/${_pkgname}"
+ gcc cbonsai.c -Wall -Wpedantic -l panel -l ncurses -o cbonsai
+ install -vDm 755 cbonsai -t "${pkgdir}/usr/bin/"
+}