2016-03-25 09:11:31 +00:00
|
|
|
# Maintainer: Jack L. Frost <fbt@fleshless.org>
|
2019-11-08 17:10:19 +00:00
|
|
|
# % Trigger: 1573232958 %
|
2016-03-25 09:11:31 +00:00
|
|
|
|
|
|
|
_srcname='ubase'
|
2016-03-25 11:27:19 +00:00
|
|
|
pkgbase=ubase-extras
|
|
|
|
pkgname=( halt-ubase-git killall5-ubase-git )
|
2019-11-08 17:10:19 +00:00
|
|
|
pkgver=r610.3c88778
|
2016-03-25 09:11:31 +00:00
|
|
|
pkgrel=1
|
2017-01-03 19:41:30 +00:00
|
|
|
pkgdesc="A few tools from suckless.org's ubase packaged for Spark."
|
2016-03-25 09:11:31 +00:00
|
|
|
url='http://core.suckless.org/ubase'
|
|
|
|
arch=( 'x86_64' 'i686' )
|
|
|
|
license=( 'MIT' )
|
|
|
|
|
|
|
|
source=( "git://git.suckless.org/ubase" )
|
|
|
|
sha1sums=( 'SKIP' )
|
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd "${_srcname}"
|
|
|
|
|
|
|
|
if git_version=$( git describe --long --tags 2>/dev/null ); then
|
|
|
|
IFS='-' read last_tag tag_rev commit <<< "$git_version"
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${_srcname}"
|
2016-03-25 11:27:19 +00:00
|
|
|
make halt killall5
|
2016-03-25 09:11:31 +00:00
|
|
|
}
|
|
|
|
|
2016-03-25 11:27:19 +00:00
|
|
|
package_halt-ubase-git() {
|
2016-03-25 09:11:31 +00:00
|
|
|
cd "${_srcname}"
|
|
|
|
|
|
|
|
mkdir -pm755 "$pkgdir/usr/bin"
|
|
|
|
cp halt "$pkgdir/usr/bin/halt"
|
|
|
|
|
|
|
|
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
|
|
}
|
2016-03-25 11:27:19 +00:00
|
|
|
|
|
|
|
package_killall5-ubase-git() {
|
|
|
|
cd "${_srcname}"
|
|
|
|
|
|
|
|
mkdir -pm755 "$pkgdir/usr/bin"
|
|
|
|
cp killall5 "$pkgdir/usr/bin/killall5"
|
|
|
|
|
|
|
|
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
|
|
}
|