summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorJan Holthuis2017-05-21 21:18:34 +0200
committerJan Holthuis2017-05-21 21:18:34 +0200
commit5a3ee97cd8835dac00db89b2903228b5c89d6ff4 (patch)
treefac3af32220cddd2b873d5fb7c4348598de007ea /PKGBUILD
downloadaur-5a3ee97cd8835dac00db89b2903228b5c89d6ff4.tar.gz
Add initial PKGBUILD for rail 1.2.1
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..5329978660c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Jan Holthuis <holthuis dot jan at gmail dot com>
+pkgname=latex-rail
+pkgver=1.2.1
+pkgrel=1
+pkgdesc="A C program and LaTeX packkage to draw syntax diagrams specified in EBNF."
+arch=('x86' 'x86_64')
+url="http://www.ctan.org/tex-archive/support/rail"
+license=('unknown')
+depends=('texlive-core')
+source=("https://github.com/Holzhaus/$pkgname/archive/v$pkgver.tar.gz")
+install="$pkgname.install"
+sha512sums=('0dfa3af25b152395a398271c06e880db76567ea542720646e793c148bc70c657100538696e1228d7eff8b416e9c5478b8ba2228b6754ac1b5458af96313c2d0e')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make
+ make doc
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ make PREFIX="/usr" DESTDIR="$pkgdir" install
+
+ # Documentation
+ install -Dm644 README "$pkgdir/usr/share/doc/$pkgname/README"
+ install -Dm644 README2e "$pkgdir/usr/share/doc/$pkgname/README2e"
+ install -Dm644 rail.pdf "$pkgdir/usr/share/doc/$pkgname/rail.pdf"
+ install -Dm644 rail.txt "$pkgdir/usr/share/doc/$pkgname/rail.txt"
+}