You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

41 lines
1.0 KiB

# Maintainer: Jack L. Frost <fbt@fleshless.org>
# % Trigger: 1615004433 %
pkgname='ssm-git'
pkgver=0.3.5.r30.g730374f
pkgrel=1
pkgdesc='A simple service manager for Spark Linux'
url='https://git.fleshless.org/ssm/about'
arch=( 'any' )
license=( 'ISC' )
backup=( 'etc/ssm/ssm.conf' )
depends=( 'bash' )
makedepends=( 'git' )
conflicts=( 'ssm' )
provides=( 'ssm' )
optdepends=(
'ssm-services-git: example scripts that mostly work out of the box on arch'
'ssm-service: a /usr/bin/service link for ssm'
)
source=( "${pkgname}::git+https://code.fleshless.org/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 examples/ssm.conf "$pkgdir/etc/ssm/ssm.conf"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}