diff options
author | Andy Weidenbaum | 2015-06-09 11:41:58 -0700 |
---|---|---|
committer | Andy Weidenbaum | 2015-06-09 11:41:58 -0700 |
commit | ab69ed3e172740b7ada7bd148e61b379f6569437 (patch) | |
tree | fe4c711783f9d119a9a6972a31d3170c86a0ac92 /PKGBUILD | |
download | aur-ab69ed3e172740b7ada7bd148e61b379f6569437.tar.gz |
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..56c62792713b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Andy Weidenbaum <archbaum@gmail.com> + +pkgname=sqawk-git +pkgver=20150128 +pkgrel=1 +pkgdesc="Like Awk but with SQL and table joins" +arch=('i686' 'x86_64') +depends=('sqlite-tcl' 'tcl' 'tcllib') +makedepends=('git') +url="https://github.com/dbohdan/sqawk" +license=('MIT') +source=(git+https://github.com/dbohdan/sqawk) +sha256sums=('SKIP') + +pkgver() { + cd ${pkgname%-git} + git log -1 --format="%cd" --date=short | sed "s|-||g" +} + +package() { + cd ${pkgname%-git} + + msg 'Installing license...' + install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/${pkgname%-git}/LICENSE" + + msg 'Installing documentation...' + install -dm 755 "$pkgdir/usr/share/doc/${pkgname%-git}" + cp -dpr --no-preserve=ownership README.md examples "$pkgdir/usr/share/doc/${pkgname%-git}" + + msg 'Installing...' + install -Dm 755 sqawk.tcl "$pkgdir/usr/bin/sqawk" + + msg 'Cleaning up pkgdir...' + find "$pkgdir" -type d -name .git -exec rm -r '{}' + +} |