From dff65eee2a9f0c9b80296870d3b7beb59d900001 Mon Sep 17 00:00:00 2001 From: fbt Date: Mon, 8 Jun 2015 12:29:41 +0300 Subject: [PATCH] init --- .SRCINFO | 15 +++++++++++++++ PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..4464af2 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = fskit-git + pkgdesc = Filesystem utility library and SDK + pkgver = r197.e626604 + pkgrel = 1 + url = https://github.com/jcnelson/fskit.git + arch = x86_64 + arch = i686 + license = ISC + depends = fuse + provides = fskit + source = fskit-git::git+https://github.com/jcnelson/fskit.git + sha1sums = SKIP + +pkgname = fskit-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..05e9239 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Jack L. Frost + +pkgname=fskit-git +pkgver=r197.e626604 +pkgrel=1 +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}" + make CXX='g++ -fPIC' +} + +package() { + cd "${pkgname}" + make DESTDIR="${pkgdir}" install +} + +# vim: noet