summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMitchell Hentges2017-05-21 11:55:41 -0700
committerMitchell Hentges2017-05-21 11:55:41 -0700
commitdac95c1b36296187a375c8daf61077dfb63f9baf (patch)
tree23587bccd8b1cb837b45aba948e1963575c85747
downloadaur-dac95c1b36296187a375c8daf61077dfb63f9baf.tar.gz
Initial commit
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD37
2 files changed, 58 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..db934b0250c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = grestful-git
+ pkgdesc = A simple RESTful API client written in GTK 3.
+ pkgver = 20170119.0b56614
+ pkgrel = 1
+ url = https://gitlab.com/Gert-dev/grestful
+ arch = i686
+ arch = x86_64
+ license = MPL
+ makedepends = dub
+ makedepends = dmd
+ makedepends = git
+ makedepends = gtk3
+ makedepends = gtksourceview3
+ depends = curl
+ provides = grestful
+ conflicts = grestful
+ source = grestful::git+https://gitlab.com/Gert-dev/grestful.git
+ sha1sums = SKIP
+
+pkgname = grestful-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..aca0f7fd394
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Mitchell Hentges <mitch@fuzzlesoft.ca>
+
+_pkgname=grestful
+pkgname=${_pkgname}-git
+pkgver=20170119.0b56614
+pkgrel=1
+pkgdesc="A simple RESTful API client written in GTK 3."
+url="https://gitlab.com/Gert-dev/grestful"
+arch=("i686" "x86_64")
+license=("MPL")
+depends=("curl")
+makedepends=("dub" "dmd" "git" "gtk3" "gtksourceview3" )
+source=("${_pkgname}::git+https://gitlab.com/Gert-dev/grestful.git")
+sha1sums=('SKIP')
+
+provides=("${_pkgname}")
+conflicts=("${_pkgname}")
+
+pkgver() {
+ cd "${srcdir}/${_pkgname}"
+ git log -1 --format='%cd.%h' --date=short | tr -d -
+}
+
+build() {
+ cd "${srcdir}/${_pkgname}"
+ dub build --build=release
+}
+
+package() {
+ builddir="${srcdir}/${_pkgname}"
+ mkdir -p "${pkgdir}/usr/bin"
+ cp "${builddir}/grestful" "${pkgdir}/usr/bin/grestful"
+ mkdir -p "${pkgdir}/usr/share/grestful"
+ cp -R "${builddir}/public/design" "${pkgdir}/usr/share/grestful/"
+ mkdir -p "${pkgdir}/usr/share/applications"
+ cp -R "${builddir}/public/grestful.desktop" "${pkgdir}/usr/share/applications/"
+}