summaryrefslogtreecommitdiff
path: root/pcr/apertium/apertium-sv-da
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/apertium/apertium-sv-da')
-rw-r--r--pcr/apertium/apertium-sv-da/Makefile.am.patch35
-rw-r--r--pcr/apertium/apertium-sv-da/PKGBUILD5
-rw-r--r--pcr/apertium/apertium-sv-da/configure.ac.patch19
3 files changed, 59 insertions, 0 deletions
diff --git a/pcr/apertium/apertium-sv-da/Makefile.am.patch b/pcr/apertium/apertium-sv-da/Makefile.am.patch
new file mode 100644
index 000000000..13542d70c
--- /dev/null
+++ b/pcr/apertium/apertium-sv-da/Makefile.am.patch
@@ -0,0 +1,35 @@
+--- ../apertium-sv-da-0.5.0/Makefile.am 2009-09-22 14:53:23.000000000 +0200
++++ apertium-sv-da-0.5.0/Makefile.am 2010-09-15 15:34:16.000000000 +0200
+@@ -53,7 +53,7 @@
+ apertium-validate-transfer $(BASENAME).$(PREFIX2).t1x
+ apertium-preprocess-transfer $(BASENAME).$(PREFIX2).t1x \
+ $(PREFIX2).t1x.bin
+-
++
+
+ $(PREFIX1).mode: modes.xml
+ apertium-gen-modes modes.xml
+@@ -68,7 +68,7 @@
+ $(BASENAME).$(LANG2).dix $(BASENAME).$(LANG1).tsx \
+ $(BASENAME).$(LANG2).tsx $(BASENAME).$(PREFIX1).t1x \
+ $(BASENAME).$(PREFIX2).t1x $(PREFIX1).prob $(PREFIX2).prob modes.xml
+-
++
+ apertium_sv_modesdir=$(prefix)/share/apertium/modes/
+ apertium_sv_dadir=$(prefix)/share/apertium/apertium-$(PREFIX1)/
+ apertium_sv_da_DATA=$(PREFIX1).automorf.bin $(PREFIX2).automorf.bin \
+@@ -82,10 +82,10 @@
+
+ install-data-local:
+ apertium-gen-modes modes.xml apertium-$(PREFIX1)
+- $(INSTALL_DATA) $(PREFIX1).mode $(apertium_sv_modesdir)
+- $(INSTALL_DATA) $(PREFIX2).mode $(apertium_sv_modesdir)
+- $(INSTALL_DATA) $(BASENAME).$(PREFIX1).t1x $(apertium_sv_dadir)
+- $(INSTALL_DATA) $(BASENAME).$(PREFIX2).t1x $(apertium_sv_dadir)
++ $(INSTALL_DATA) $(PREFIX1).mode $(DESTDIR)$(apertium_sv_modesdir)
++ $(INSTALL_DATA) $(PREFIX2).mode $(DESTDIR)$(apertium_sv_modesdir)
++ $(INSTALL_DATA) $(BASENAME).$(PREFIX1).t1x $(DESTDIR)$(apertium_sv_dadir)
++ $(INSTALL_DATA) $(BASENAME).$(PREFIX2).t1x $(DESTDIR)$(apertium_sv_dadir)
+ cp *.mode modes/
+
+
diff --git a/pcr/apertium/apertium-sv-da/PKGBUILD b/pcr/apertium/apertium-sv-da/PKGBUILD
index c9e9c52b7..bbd1b2a34 100644
--- a/pcr/apertium/apertium-sv-da/PKGBUILD
+++ b/pcr/apertium/apertium-sv-da/PKGBUILD
@@ -29,4 +29,9 @@ build() {
./configure --prefix=/usr
make || return 1
make DESTDIR="$pkgdir/" install || return 1
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make DESTDIR="$pkgdir/" install
} \ No newline at end of file
diff --git a/pcr/apertium/apertium-sv-da/configure.ac.patch b/pcr/apertium/apertium-sv-da/configure.ac.patch
new file mode 100644
index 000000000..e986d2c9b
--- /dev/null
+++ b/pcr/apertium/apertium-sv-da/configure.ac.patch
@@ -0,0 +1,19 @@
+--- ../apertium-sv-da-0.5.0/configure.ac 2009-09-22 14:47:25.000000000 +0200
++++ apertium-sv-da-0.5.0/configure.ac 2010-09-21 16:39:20.487405444 +0200
+@@ -19,8 +19,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
++ ])
+ ])
+ AC_SUBST(APERTIUM_VER)
+ ])