2017-12-14 04:32:52 +00:00
|
|
|
# Maintainer: Jack L. Frost <fbt@fleshless.org>
|
2018-03-04 13:56:11 +00:00
|
|
|
# % Trigger: 1520171768 %
|
2017-12-14 04:32:52 +00:00
|
|
|
|
2018-01-11 10:46:31 +00:00
|
|
|
pkgname='ssm-git'
|
|
|
|
pkgver=0.3.5.r30.g730374f
|
2018-01-08 07:34:05 +00:00
|
|
|
pkgrel=1
|
2017-12-14 04:32:52 +00:00
|
|
|
pkgdesc='A simple service manager for Spark Linux'
|
|
|
|
url='https://git.fleshless.org/ssm/about'
|
|
|
|
arch=( 'any' )
|
|
|
|
license=( 'ISC' )
|
2018-01-11 10:46:31 +00:00
|
|
|
|
|
|
|
backup=( 'etc/ssm/ssm.conf' )
|
|
|
|
|
2017-12-14 04:32:52 +00:00
|
|
|
depends=( 'bash' )
|
2017-12-14 04:35:19 +00:00
|
|
|
conflicts=( 'ssm' )
|
|
|
|
provides=( 'ssm' )
|
2018-01-11 10:46:31 +00:00
|
|
|
optdepends=(
|
|
|
|
'ssm-services-git: example scripts that mostly work out of the box on arch'
|
|
|
|
'ssm-service: a /usr/bin/service link for ssm'
|
|
|
|
)
|
2017-12-14 04:32:52 +00:00
|
|
|
|
2018-01-22 10:16:04 +00:00
|
|
|
source=( "${pkgname}::git+https://git.fleshless.org/u/spark/ssm" )
|
2017-12-14 04:32:52 +00:00
|
|
|
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"
|
2018-01-08 09:04:26 +00:00
|
|
|
install -Dm644 ssm.conf "$pkgdir/etc/ssm/ssm.conf"
|
2017-12-14 04:32:52 +00:00
|
|
|
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
|
|
}
|