summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorKevin Brubeck Unhammer2017-11-03 09:34:12 +0100
committerKevin Brubeck Unhammer2017-11-03 09:34:12 +0100
commit94cbde20f95442f51786430e5956f1989a5ff602 (patch)
tree66c3914c021cfb76aba25aa97f1e953125459513 /PKGBUILD
downloadaur-apertium-svn.tar.gz
for apertium-separable-svn
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7e9a563318f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Contributor: Kevin Brubeck Unhammer <unhammer@fsfe.org>
+# Maintainer: Kevin Brubeck Unhammer <unhammer@fsfe.org>
+pkgname=apertium-svn
+_pkgname=apertium
+pkgver=3.4.2.r83055
+pkgrel=1
+pkgdesc="Language-independent machine translation engine and tools to manage language data."
+url="https://apertium.org"
+license=('GPL2')
+makedepends=('svn' 'pkgconfig' 'flex')
+depends=('lttoolbox-svn' 'pcre' 'gawk' 'expat' 'libxslt')
+options=('!libtool')
+provides=("${_pkgname}=${pkgver}")
+conflicts=("${_pkgname}")
+arch=('i686' 'x86_64')
+source=("svn://svn.code.sf.net/p/apertium/svn/trunk/${_pkgname}")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/${_pkgname}"
+ local ver="${pkgver%%.r*}"
+ local rev="$(svnversion)"
+ printf "%s.r%s" "${ver}" "${rev//[[:alpha:]]}"
+}
+
+build() {
+ cd "$srcdir/${_pkgname}"
+ ./autogen.sh
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "$srcdir/${_pkgname}"
+ make DESTDIR="$pkgdir/" install
+}