diff options
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | Makefile.am.patch | 100 | ||||
-rw-r--r-- | PKGBUILD | 32 | ||||
-rw-r--r-- | configure.ac.patch | 19 |
4 files changed, 172 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..021ad08a8316 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = apertium-eu-es + pkgdesc = Apertium language data for the Basque-Spanish translator. + pkgver = 0.3.1 + pkgrel = 2 + url = http://apertium.org + arch = i686 + arch = x86_64 + license = GPL + makedepends = pkgconfig + makedepends = autoconf + depends = lttoolbox>=3.0 + depends = apertium>=3.0 + source = http://downloads.sourceforge.net/sourceforge/apertium/apertium-eu-es-0.3.1.tar.gz + source = Makefile.am.patch + source = configure.ac.patch + md5sums = 990cbc06d639d7e1ecda0132405fe07a + md5sums = 7ce5bc046e8b9d3b23134332fee6143c + md5sums = 846c24b12b3528ae9e257b8d3c6796a8 + +pkgname = apertium-eu-es + diff --git a/Makefile.am.patch b/Makefile.am.patch new file mode 100644 index 000000000000..9da0248a413b --- /dev/null +++ b/Makefile.am.patch @@ -0,0 +1,100 @@ +--- ../apertium-eu-es-0.3.1/Makefile.am 2009-04-24 09:55:48.000000000 +0200 ++++ apertium-eu-es-0.3.1/Makefile.am 2010-09-21 16:17:49.880738777 +0200 +@@ -10,13 +10,13 @@ + $(PREFIX1).autopgen.bin $(PREFIX1).t1x.bin $(PREFIX1).t2x.bin $(PREFIX1).t3x.bin \ + $(PREFIX1).ordinals.t1x.bin modes + #$(PREFIX1).rlx.bin modes +- ++ + TARGETS = $(TARGETS_COMMON) trules-$(PREFIX1).bin trules-$(PREFIX2).bin \ + trules-$(PREFIX1).xml trules-$(PREFIX2).xml + # $(BASENAME).$(LANG1)-lextor.dix $(BASENAME).$(LANG2)-lextor.dix \ + # $(BASENAME).$(PREFIX1)-lextor.dix $(BASENAME).$(PREFIX2)-lextor.dix + +- ++ + $(PREFIX1).automorf.bin: $(BASENAME).$(LANG1).dix + apertium-validate-dictionary $(BASENAME).$(LANG1).dix + lt-comp lr $(BASENAME).$(LANG1).dix $@ +@@ -63,7 +63,7 @@ + ## apertium-validate-transfer $(BASENAME).trules-$(PREFIX1).xml + ## apertium-preprocess-transfer $(BASENAME).trules-$(PREFIX1).xml \ + ## trules-$(PREFIX1).bin +- ++ + ##trules-$(PREFIX2).bin: $(BASENAME).trules-$(PREFIX2).xml + ## apertium-validate-transfer $(BASENAME).trules-$(PREFIX2).xml + ## apertium-preprocess-transfer $(BASENAME).trules-$(PREFIX2).xml \ +@@ -79,14 +79,14 @@ + ##$(BASENAME).$(LANG1)-lextor.dix: $(BASENAME).$(PREFIX1).dix + ## apertium-validate-dictionary $(BASENAME).$(PREFIX1).dix + ## apertium-gen-lextormono rl $(BASENAME).$(PREFIX1).dix $@ +- ++ + ##$(BASENAME).$(LANG2)-lextor.dix: $(BASENAME).$(PREFIX1).dix + ## apertium-validate-dictionary $(BASENAME).$(PREFIX1).dix + ## apertium-gen-lextormono lr $(BASENAME).$(PREFIX1).dix $@ + + ##$(PREFIX1).lextormono.bin: $(BASENAME).$(LANG1)-lextor.dix + ## lt-comp lr $(BASENAME).$(LANG1)-lextor.dix $@ +- ++ + ##$(PREFIX2).lextormono.bin: $(BASENAME).$(LANG2)-lextor.dix + ## lt-comp lr $(BASENAME).$(LANG2)-lextor.dix $@ + +@@ -94,14 +94,14 @@ + ##$(BASENAME).$(PREFIX1)-lextor.dix: $(BASENAME).$(PREFIX1).dix + ## apertium-validate-dictionary $(BASENAME).$(PREFIX1).dix + ## apertium-gen-lextorbil rl $(BASENAME).$(PREFIX1).dix $@ +- ++ + ##$(BASENAME).$(PREFIX2)-lextor.dix: $(BASENAME).$(PREFIX1).dix + ## apertium-validate-dictionary $(BASENAME).$(PREFIX1).dix + ## apertium-gen-lextorbil lr $(BASENAME).$(PREFIX1).dix $@ + + ##$(PREFIX1).lextorbil.bin: $(BASENAME).$(PREFIX1)-lextor.dix + ## lt-comp lr $(BASENAME).$(PREFIX1)-lextor.dix $@ +- ++ + ##$(PREFIX2).lextorbil.bin: $(BASENAME).$(PREFIX2)-lextor.dix + ## lt-comp lr $(BASENAME).$(PREFIX2)-lextor.dix $@ + +@@ -152,7 +152,7 @@ + # $(BASENAME).$(PREFIX2).t1x + # $(BASENAME).$(PREFIX2).t2x $(BASENAME).$(PREFIX2).t3x + # $(BASENAME).$(LANG2).tsx +- ++ + modes: modes.xml + apertium-gen-modes modes.xml + +@@ -161,7 +161,7 @@ + apertium-gen-modes modes.xml + mkdir -p modes/ + cp $(PREFIX1).mode modes/ +- ++ + apertium_eu_esdir=$(prefix)/share/apertium/apertium-$(PREFIX1)/ + apertium_eu_modesdir=$(prefix)/share/apertium/modes/ + +@@ -169,15 +169,15 @@ + $(PREFIX1).autobil.bin \ + $(PREFIX1).autogen.bin \ + $(PREFIX1).autopgen.bin \ +- $(PREFIX1).prob $(PREFIX1).ordinals.t1x.bin \ ++ $(PREFIX1).prob \ + $(PREFIX1).t1x.bin $(PREFIX1).t2x.bin $(PREFIX1).t3x.bin $(PREFIX1).ordinals.t1x.bin\ + $(PREFIX1).mode + + install-data-local: + apertium-gen-modes modes.xml apertium-$(PREFIX1) +- $(INSTALL_DATA) $(PREFIX1).mode $(apertium_eu_modesdir) +- $(INSTALL_DATA) $(BASENAME).$(PREFIX1).t1x $(BASENAME).$(PREFIX1).t2x $(apertium_eu_esdir) +- $(INSTALL_DATA) $(BASENAME).$(PREFIX1).t3x $(apertium_eu_esdir) +- $(INSTALL_DATA) $(BASENAME).ordinals.t1x $(apertium_eu_esdir) ++ $(INSTALL_DATA) $(PREFIX1).mode $(DESTDIR)$(apertium_eu_modesdir) ++ $(INSTALL_DATA) $(BASENAME).$(PREFIX1).t1x $(BASENAME).$(PREFIX1).t2x $(DESTDIR)$(apertium_eu_esdir) ++ $(INSTALL_DATA) $(BASENAME).$(PREFIX1).t3x $(DESTDIR)$(apertium_eu_esdir) ++ $(INSTALL_DATA) $(BASENAME).ordinals.t1x $(DESTDIR)$(apertium_eu_esdir) + + CLEANFILES = -r $(TARGETS) diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..cec91ddc2b4a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +# Contributor: Kevin Brubeck Unhammer <unhammer@gmail.com> +# Maintainer: Kevin Brubeck Unhammer <unhammer@gmail.com> +pkgname=apertium-eu-es +pkgver=0.3.1 +pkgrel=2 +pkgdesc="Apertium language data for the Basque-Spanish translator." +url="http://apertium.org" +license=('GPL') +makedepends=('pkgconfig' 'autoconf') +depends=('lttoolbox>=3.0' 'apertium>=3.0') +arch=('i686' 'x86_64') +source=("http://downloads.sourceforge.net/sourceforge/apertium/${pkgname}-${pkgver}.tar.gz" + "Makefile.am.patch" + "configure.ac.patch") +md5sums=('990cbc06d639d7e1ecda0132405fe07a' + '7ce5bc046e8b9d3b23134332fee6143c' + '846c24b12b3528ae9e257b8d3c6796a8') + +build() { + patch -p0 < Makefile.am.patch + patch -p0 < configure.ac.patch + + mkdir -p "$pkgdir/usr/share/apertium/modes" + + cd "$srcdir/$pkgname-$pkgver" + + autoreconf -i + + ./configure --prefix=/usr + make || return 1 + make DESTDIR="$pkgdir/" install || return 1 +}
\ No newline at end of file diff --git a/configure.ac.patch b/configure.ac.patch new file mode 100644 index 000000000000..8c8eace773f6 --- /dev/null +++ b/configure.ac.patch @@ -0,0 +1,19 @@ +--- ../apertium-eu-es-0.3.1/configure.ac 2009-04-23 22:40:45.000000000 +0200 ++++ apertium-eu-es-0.3.1/configure.ac 2010-09-21 16:11:38.740738737 +0200 +@@ -27,8 +27,14 @@ + APERTIUM_VER=30 + ], + [ +- PKG_CHECK_MODULES(APERTIUM, apertium-3.1 >= 3.1.0) +- APERTIUM_VER=31 ++ PKG_CHECK_MODULES(APERTIUM, apertium-3.1 >= 3.1.0, ++ [ ++ APERTIUM_VER=31 ++ ], ++ [ ++ PKG_CHECK_MODULES(APERTIUM, apertium-3.2 >= 3.2.0) ++ APERTIUM_VER=32 ++ ]) + ]) + ]) + ]) |