diff options
author | tdy | 2017-01-21 07:10:36 -0600 |
---|---|---|
committer | tdy | 2017-01-21 07:10:36 -0600 |
commit | ef15310f3d5dc56b37c8c794b3f5a269db5e58c7 (patch) | |
tree | d564649ea5c52f360892663dc96f9b638bc71e75 /PKGBUILD | |
download | aur-ef15310f3d5dc56b37c8c794b3f5a269db5e58c7.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..07793018aebf --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: archlinux.info:tdy + +pkgname=barefoot-git +pkgver=r17.6960d86 +pkgrel=1 +pkgdesc="Convert Fountain screenplay files to plain text, ready for printing, from the shell" +arch=(i686 x86_64) +url=https://gitlab.com/notklaatu/barefoot +license=(GPL3) +depends=(boost-libs) +makedepends=(git boost) +provides=(${pkgname%-git}) +conflicts=(${pkgname%-git}) +source=($pkgname::git+https://gitlab.com/notklaatu/${pkgname%-git}) +sha256sums=(SKIP) + +pkgver() { + cd $pkgname + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd $pkgname + g++ -I /usr/include/boost/ ${pkgname%-git}.cpp \ + -o ${pkgname%-git} -L /usr/lib/ -lboost_regex +} + +package() { + cd $pkgname + install -Dm755 ${pkgname%-*} "$pkgdir"/usr/bin/${pkgname%-git} + install -Dm644 README.md "$pkgdir"/usr/share/doc/$pkgname/README + install -m644 formatting.notes "$pkgdir"/usr/share/doc/$pkgname/ +} |