summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Strömkvist2018-05-11 17:12:46 +0200
committerAnton Strömkvist2018-05-11 17:12:46 +0200
commit4fa666b3b26647ffe34ca11ad66dea095d828d7f (patch)
tree45147697367b81214904131dff01cd58f0cb0f6b
downloadaur-log-git.tar.gz
Initial commit
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD44
2 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..712f53eee7a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = log-git
+ pkgdesc = Log & time-tracker
+ pkgver = r986.0e531d2
+ pkgrel = 1
+ url = https://github.com/joshavanier/log
+ arch = x86_64
+ license = MIT
+ makedepends = git
+ makedepends = npm
+ provides = log
+ conflicts = log
+ source = git+https://github.com/joshavanier/log.git
+ md5sums = SKIP
+
+pkgname = log-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..5ed79a76f29
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer: Anton Strömkvist <anton@stromkvist.com>
+pkgname=log-git
+pkgver=r986.0e531d2
+pkgrel=1
+pkgdesc="Log & time-tracker"
+arch=('x86_64')
+url="https://github.com/joshavanier/log"
+license=('MIT')
+groups=()
+depends=()
+makedepends=('git' 'npm')
+provides=("log")
+conflicts=("log")
+replaces=()
+backup=()
+options=()
+install=
+source=('git+https://github.com/joshavanier/log.git')
+noextract=()
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/${pkgname%-git}"
+# Git, no tags available
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd "$srcdir/${pkgname%-git}"
+ npm install
+}
+
+build() {
+ cd "$srcdir/${pkgname%-git}"
+ npm run-script build_linux
+}
+
+package() {
+ cd "$srcdir/${pkgname%-git}"
+ install -d "${pkgdir}/usr/bin/"
+ install -d "${pkgdir}/usr/lib/"
+ cp -r "$srcdir/${pkgname%-git}/build/Log-linux-x64" "${pkgdir}/usr/lib/Log"
+ ln -s "/usr/lib/Log/Log" "${pkgdir}/usr/bin/Log"
+}