summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pcr/apertium-eng-spa-git/PKGBUILD43
1 files changed, 19 insertions, 24 deletions
diff --git a/pcr/apertium-eng-spa-git/PKGBUILD b/pcr/apertium-eng-spa-git/PKGBUILD
index f7f20e95d..fae0e1ecb 100644
--- a/pcr/apertium-eng-spa-git/PKGBUILD
+++ b/pcr/apertium-eng-spa-git/PKGBUILD
@@ -1,41 +1,36 @@
# Contributor (AUR): Kevin Brubeck Unhammer <unhammer@fsfe.org>
# Maintainer (AUR): Kevin Brubeck Unhammer <unhammer@fsfe.org>
-# parabola changes and rationale:
-# no changes
-# NOTE: the AUR PKGBUILD patches the autotools files
-# but it was using a version of 'apertium-en-es' from 2011
-# so i did not take the patches
+_commit=27d1ba848361684ba074e018d65b0282c4c84163
-
-pkgname=apertium-en-es-git
-pkgver=d0a72e428a23081aaf479d00f30d63053a149cce
+pkgname=apertium-eng-spa-git
+pkgver=r0
pkgrel=1
+arch=('i686' 'x86_64' 'armv7h')
pkgdesc="Apertium translation pair for English and Spanish"
-url="http://apertium.org"
+url="https://github.com/apertium/apertium-eng-spa"
license=('GPL2')
-makedepends=('apertium-lex-tools')
-depends=('apertium>=3.4')
-arch=('i686' 'x86_64' 'armv7h')
-source=(https://github.com/apertium/apertium-en-es/archive/${pkgver}.zip)
-md5sums=('e07b933c9b3afb7526e342dfa05f7999')
-sha256sums=('ddee8430463c796a85b3c6fb42735dc7352941a403564f5808e7479ba7895d27')
-
-_builddir="${pkgname/%-git}-$pkgver"
-
+makedepends=('git' 'apertium-lex-tools')
+depends=('apertium>=3.5')
+replaces=('apertium-en-es-git')
+source=("git+https://github.com/apertium/apertium-eng-spa.git#commit=$_commit")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "${pkgname%-git}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
-build()
-{
- cd "$srcdir/$_builddir"
+build() {
+ cd "${pkgname%-git}"
./autogen.sh
./configure --prefix=/usr
make
}
-package()
-{
- cd "$srcdir/$_builddir"
+package() {
+ cd "${pkgname%-git}"
make DESTDIR="$pkgdir/" install
}