summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabian P. Schmidt2022-07-27 15:50:31 +0200
committerFabian P. Schmidt2022-07-27 15:53:23 +0200
commit374f478db8254f193ca0aa36b25ce6d3901fa0f3 (patch)
treebfa925b544a68e84e1cf7b22bcabb95c3e56bbc6
downloadaur-374f478db8254f193ca0aa36b25ce6d3901fa0f3.tar.gz
Initial commit of giza-git package
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD32
2 files changed, 46 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..361ffa8fe7f7
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = giza-git
+ pkgdesc = giza - a scientific plotting library for C/Fortran
+ pkgver = r715.a6cefc4
+ pkgrel = 1
+ url = https://github.com/danieljprice/giza
+ arch = any
+ license = GPL2
+ makedepends = git
+ provides = giza
+ conflicts = giza
+ source = giza::git+https://github.com/danieljprice/giza.git#branch=master
+ sha256sums = SKIP
+
+pkgname = giza-git
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..67e8ed5f91cb
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: kerel <kerel at mailbox dot org>
+
+pkgname=giza-git
+pkgver=r715.a6cefc4
+pkgrel=1
+pkgdesc="giza - a scientific plotting library for C/Fortran"
+arch=('any')
+url="https://github.com/danieljprice/giza"
+branch="master"
+license=('GPL2')
+depends=()
+makedepends=('git')
+provides=("${pkgname%-git}")
+conflicts=("${pkgname%-git}")
+source=("giza::git+$url.git#branch=$branch")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/${pkgname%-git}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "$srcdir/${pkgname%-git}"
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "$srcdir/${pkgname%-git}"
+ make DESTDIR="$pkgdir/" install
+}