summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Holthuis2017-05-21 21:18:34 +0200
committerJan Holthuis2017-05-21 21:18:34 +0200
commit5a3ee97cd8835dac00db89b2903228b5c89d6ff4 (patch)
treefac3af32220cddd2b873d5fb7c4348598de007ea
downloadaur-5a3ee97cd8835dac00db89b2903228b5c89d6ff4.tar.gz
Add initial PKGBUILD for rail 1.2.1
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD30
-rw-r--r--latex-rail.install13
3 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c676d305f5a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+# Generated by mksrcinfo v8
+# Sun May 21 19:17:48 UTC 2017
+pkgbase = latex-rail
+ pkgdesc = A C program and LaTeX packkage to draw syntax diagrams specified in EBNF.
+ pkgver = 1.2.1
+ pkgrel = 1
+ url = http://www.ctan.org/tex-archive/support/rail
+ install = latex-rail.install
+ arch = x86
+ arch = x86_64
+ license = unknown
+ depends = texlive-core
+ source = https://github.com/Holzhaus/latex-rail/archive/v1.2.1.tar.gz
+ sha512sums = 0dfa3af25b152395a398271c06e880db76567ea542720646e793c148bc70c657100538696e1228d7eff8b416e9c5478b8ba2228b6754ac1b5458af96313c2d0e
+
+pkgname = latex-rail
+
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"
+}
diff --git a/latex-rail.install b/latex-rail.install
new file mode 100644
index 00000000000..47445e33c21
--- /dev/null
+++ b/latex-rail.install
@@ -0,0 +1,13 @@
+post_install() {
+ mktexlsr
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}
+
+