summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorRobin McCorkell2015-11-19 23:57:56 +0000
committerRobin McCorkell2015-11-19 23:59:40 +0000
commite408e23aa956d0a91aa6690f01da0302d72f2cc1 (patch)
tree9d3018a22eaedd1c3c7a5d3164251adf62300ec6 /PKGBUILD
downloadaur-pandoc-plantuml-filter-git.tar.gz
Initial version 0.1.0.2
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8449f7ae4b3
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+# Maintainer: Robin McCorkell <robin@mccorkell.me.uk>
+pkgname=pandoc-plantuml-filter-git
+pkgver=0.1.0.2
+pkgrel=1
+pkgdesc="Pandoc filter for PlantUML code blocks"
+arch=('any')
+url="https://github.com/kbonne/pandoc-plantuml-filter"
+license=('GPL2')
+depends=(pandoc plantuml)
+makedepends=(git cabal-install haskell-pandoc-types)
+provides=("${pkgname%-git}")
+conflicts=("${pkgname%-git}")
+source=(
+ 'git+https://github.com/kbonne/pandoc-plantuml-filter.git'
+ 'cabal.patch'
+)
+md5sums=(
+ 'SKIP'
+ '38558ee9e9dddd252f5c46d0e8e273a6'
+)
+
+pkgver() {
+ cd "$srcdir/${pkgname%-git}"
+ printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
+}
+
+prepare() {
+ cd "$srcdir/${pkgname%-git}"
+ patch -p1 -i "$srcdir/cabal.patch"
+}
+
+build() {
+ cd "$srcdir/${pkgname%-git}"
+ cabal build
+}
+
+package() {
+ cd "$srcdir/${pkgname%-git}"
+ install -D dist/build/pandoc-plantuml-filter/pandoc-plantuml-filter "$pkgdir"/usr/bin/pandoc-plantuml-filter
+}