summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..e518462bfcee
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,39 @@
+# Maintainer: danieltetraquark
+pkgname=service-tools-git
+_pkgname=service-tools
+pkgver=r54.48577a1
+pkgrel=1
+pkgdesc='A growing collection of convenient little tools to work with systemd services'
+arch=('any')
+url="https://github.com/muesli/service-tools"
+license=('MIT')
+makedepends=('go')
+source=("git+https://github.com/muesli/service-tools")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "${srcdir}/${_pkgname}"
+
+ # Get the version number.
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "${srcdir}/${_pkgname}/service-generator"
+ go build
+ cd ../service-monitor
+ go build
+
+# go build \
+# -gcflags "all=-trimpath=$PWD" \
+# -asmflags "all=-trimpath=$PWD" \
+## -ldflags "-extldflags $LDFLAGS" \
+# -o $pkgname .
+}
+
+package() {
+ cd "${srcdir}/${_pkgname}"
+ install -Dm755 service-generator/service-generator "$pkgdir"/usr/bin/service-generator
+ install -Dm755 service-monitor/service-monitor "$pkgdir"/usr/bin/service-monitor
+}
+