From 4e64972b2f724b749a7b588d73fcd365d7b8428b Mon Sep 17 00:00:00 2001 From: fbt Date: Thu, 14 Dec 2017 07:32:52 +0300 Subject: [PATCH] init Signed-off-by: fbt --- PKGBUILD | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 PKGBUILD diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..2361577 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Jack L. Frost + +pkgname=ssm-git +pkgver=0.3.5.r5.gcb6b3d6 +pkgrel=1 +pkgdesc='A simple service manager for Spark Linux' +url='https://git.fleshless.org/ssm/about' +arch=( 'any' ) +license=( 'ISC' ) +depends=( 'bash' ) +optdepends=( 'ssm-services-git: example scripts that mostly work out of the box on arch' ) + +source=( "${pkgname}::git+https://git.fleshless.org/u/spark/ssm" ) +sha1sums=('SKIP') + +pkgver() { + cd "${srcdir}/${pkgname}" + + if IFS='-' read last_tag tag_rev commit < <( git describe --long --tags 2>/dev/null ); then + printf '%s.r%s.%s' "$last_tag" "$tag_rev" "$commit" + else + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + fi +} + +package() { + cd "$pkgname" + install -Dm755 ssm "$pkgdir/usr/bin/ssm" + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +}