This repository has been archived on 2020-05-14. You can view files and clone it, but cannot push or open issues or pull requests.
fskit-git/PKGBUILD

37 lines
821 B
Bash
Raw Permalink Normal View History

2015-06-08 09:29:41 +00:00
# Maintainer: Jack L. Frost <fbt@fleshless.org>
2015-08-21 19:51:53 +00:00
# % Trigger: 1440186708 %
2015-06-08 09:29:41 +00:00
pkgname=fskit-git
pkgver=r352.6c6082a
2015-08-21 15:26:15 +00:00
pkgrel=1
2015-06-08 09:29:41 +00:00
pkgdesc='Filesystem utility library and SDK'
url='https://github.com/jcnelson/fskit.git'
arch=( 'x86_64' 'i686' )
license=( 'ISC' )
depends=( 'fuse' )
provides=( 'fskit' )
source=( "${pkgname}::git+https://github.com/jcnelson/fskit.git" )
sha1sums=( 'SKIP' )
pkgver() {
cd "${pkgname}"
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 "${pkgname}"
2015-08-21 15:29:32 +00:00
make
2015-06-08 09:29:41 +00:00
}
package() {
cd "${pkgname}"
2015-08-23 21:37:15 +00:00
make DESTDIR="${pkgdir}" PREFIX='/usr' INCLUDE_PREFIX='/usr' install
2015-06-08 09:29:41 +00:00
}