summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Lindvall2021-05-20 17:11:15 +0200
committerMarius Lindvall2021-05-20 17:11:15 +0200
commit0ab60f1dd7ab1ca1fca7bc2e101d17e038a95aac (patch)
tree93fd80e79bf96447d9f10bcc9dcf5ad34efd3473
downloadaur-0ab60f1dd7ab1ca1fca7bc2e101d17e038a95aac.tar.gz
Initial commit
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD41
-rw-r--r--vislcg3-svn.install10
3 files changed, 72 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..cb10b03745c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = vislcg3-svn
+ pkgdesc = Compiler and parser for Constraint Grammar (CG), a paradigm for robust, rule-based Natural Language Parsing.
+ pkgver = 1.3.2.r16864
+ pkgrel = 1
+ url = https://visl.sdu.dk/cg3.html
+ install = vislcg3-svn.install
+ arch = i686
+ arch = x86_64
+ license = GPL3
+ makedepends = boost
+ makedepends = gperftools
+ makedepends = cmake
+ depends = icu
+ optdepends = perl: cg3-autobin.pl auto-compile-and-run wrapper
+ provides = vislcg3
+ conflicts = vislcg3
+ source = svn+https://visl.sdu.dk/svn/visl/tools/vislcg3/trunk
+ sha256sums = SKIP
+
+pkgname = vislcg3-svn
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..fca04de7eef
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: Marius Lindvall <(firstname) {cat} varden {dog} info>
+# Contributor: Kevin Brubeck Unhammer <unhammer@fsfe.org>
+pkgname=vislcg3-svn
+pkgver=1.3.2.r16864
+pkgrel=1
+pkgdesc="Compiler and parser for Constraint Grammar (CG), a paradigm for robust, rule-based Natural Language Parsing."
+url="https://visl.sdu.dk/cg3.html"
+license=('GPL3')
+makedepends=('boost' 'gperftools' 'cmake')
+depends=('icu')
+provides=('vislcg3')
+conflicts=('vislcg3')
+optdepends=('perl: cg3-autobin.pl auto-compile-and-run wrapper')
+arch=('i686' 'x86_64')
+source=("svn+https://visl.sdu.dk/svn/visl/tools/vislcg3/trunk")
+sha256sums=('SKIP')
+install='vislcg3-svn.install'
+
+package () {
+ cd "$srcdir/trunk"
+ make DESTDIR="$pkgdir/" install
+}
+
+build() {
+ cd "$srcdir/trunk"
+ ./cmake.sh --prefix=/usr
+ make
+}
+
+_getvar() {
+ echo $(grep "$1" src/version.hpp | awk -F'[=;]' '{gsub(/ /, "", $2);print $2}')
+}
+
+pkgver() {
+ cd "$srcdir/trunk"
+ local major=$(_getvar CG3_VERSION_MAJOR)
+ local minor=$(_getvar CG3_VERSION_MINOR)
+ local patch=$(_getvar CG3_VERSION_PATCH)
+ local ver="$(svnversion)"
+ printf "%s.%s.%s.r%s" "$major" "$minor" "$patch" "${ver//[[:alpha:]]}"
+}
diff --git a/vislcg3-svn.install b/vislcg3-svn.install
new file mode 100644
index 00000000000..43a6cea31b3
--- /dev/null
+++ b/vislcg3-svn.install
@@ -0,0 +1,10 @@
+## arg 1: the new package version
+## arg 2: the old package version
+post_upgrade() {
+ old=`echo $2 | sed 's/-[0-9]*$//'`
+ new=`echo $1 | sed 's/-[0-9]*$//'`
+ if [[ $old != $new ]]; then
+ echo "New vislcg3 version."
+ echo "Packages dependent on vislcg3 may require rebuilds!"
+ fi
+}