diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..fc6a1f999d5a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: gilzoide <gilzoide@gmail.com> + +pkgname=lap-git +pkgver=r14.6af1ab9 +pkgrel=1 +pkgdesc="A functional style C++11 library for parsing command line arguments" +arch=('i686' 'x86_64') +url="https://github.com/gilzoide/lap" +license=("GPL3") +depends=() +makedepends=('git' 'scons') +source=("$pkgname"::'git://github.com/gilzoide/lap.git') +md5sums=('SKIP') + +# Make pkg version as last commit date +pkgver () { + cd "$pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +# Build with scons +# Change to "scons debug=1" if you want a build with debug symbols +build () { + cd "$pkgname" + scons +} + +# Install with scons +# Change to "scons debug=1 install --prefix "${pkgdir}"" if you want a build +# with debug symbols +package () { + cd "$pkgname" + scons install --prefix "${pkgdir}" +} |