summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD91
1 files changed, 64 insertions, 27 deletions
diff --git a/PKGBUILD b/PKGBUILD
index c4d3e111416..40d2a3b4bf1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,39 +1,76 @@
-# Contributor: Orivej Desh <smpuj@bk.ru>
-# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
+# Former maintainers:
+# * Orivej Desh <smpuj@bk.ru>
+# * Stefan Husmann <stefan-husmann@t-online.de>
+
+# Maintainer: Vitrum <wqdxosty1yhj@bk.ru>
+
pkgname=latin-words
pkgver=1.97FC
-pkgrel=5
+pkgrel=6
pkgdesc="William Whitaker's Latin-English-Latin intelligent dictionary and Latin text analyser."
arch=("i686" "x86_64")
url="http://archives.nd.edu/whitaker/words.htm"
license=('custom')
-makedepends=('gcc-ada' 'unzip')
-provides=("wordslatin")
-conflicts=("wordslatin")
-source=("http://archives.nd.edu/whitaker/wordsall.zip" "words.sh" "license.txt")
-# alternative source: https://github.com/chrisfair/words
-sha256sums=('592134d7602879e0937b6f977a6f63aa1d14b813edaf6de04a1d8596a9a2c18e'
- '227bd31f84236127628d4332629dafe19c412d4bc41c4f269a74eb40205a8b82'
- 'd56ae6b06a2707b497f6f52b0bd6b15784bdba45586cc3e8bec789e14e025d99')
+depends=('bash')
+makedepends=('gcc-ada')
+source=("$pkgname-$pkgver.zip::http://archives.nd.edu/whitaker/wordsall.zip")
+sha256sums=('592134d7602879e0937b6f977a6f63aa1d14b813edaf6de04a1d8596a9a2c18e')
+
+# Alternative source:
+#source=("$pkgname-$pkgver::git://github.com/dsanson/Words.git")
+#sha256sums=('SKIP')
+
+prepare() {
+ cd "$srcdir"
+ sed -i 's/PAUSE_IN_SCREEN_OUTPUT => TRUE/PAUSE_IN_SCREEN_OUTPUT => FALSE/g' developer_parameters.adb
+}
build() {
- cd "$srcdir"
- unzip -quo wordsall
- gnatmake -O3 words
- gnatmake makedict && echo "g" | ./makedict
- gnatmake makestem && echo "g" | ./makestem
- gnatmake makeefil && ./makeefil
- gnatmake makeinfl && ./makeinfl
+ cd "$srcdir"
+ gnatmake -O3 words
+ gnatmake makedict && echo "g" | ./makedict
+ gnatmake makestem && echo "g" | ./makestem
+ gnatmake makeefil && ./makeefil
+ gnatmake makeinfl && ./makeinfl
}
package() {
- cd "$srcdir"
- install -D words "$pkgdir/usr/share/words-$pkgver/words"
- install -m644 ADDONS.LAT DICTFILE.GEN EWDSFILE.GEN INDXFILE.GEN \
- INFLECTS.SEC STEMFILE.GEN UNIQUES.LAT \
- "$pkgdir/usr/share/words-$pkgver/"
- install -Dm644 wordsdoc.htm "$pkgdir/usr/share/doc/words-$pkgver/wordsdoc.htm"
- install -D words.sh "$pkgdir/usr/bin/words"
- sed -i -s "s/PKGVER/$pkgver/" -i "$pkgdir/usr/bin/words"
- install -Dm644 license.txt "$pkgdir/usr/share/licenses/latin-words/LICENSE"
+ cd "$srcdir"
+
+ # main application
+ install -D words "$pkgdir/usr/share/words-$pkgver/words"
+ install -m644 ADDONS.LAT DICTFILE.GEN EWDSFILE.GEN INDXFILE.GEN \
+ INFLECTS.SEC STEMFILE.GEN UNIQUES.LAT \
+ "$pkgdir/usr/share/words-$pkgver/"
+
+ # documentation
+ install -Dm644 wordsdoc.htm "$pkgdir/usr/share/doc/words-$pkgver/wordsdoc.htm"
+
+ # starting script
+ cat > words.sh <<-EOF
+ #!/bin/bash
+ pushd /usr/share/words-$pkgver >/dev/null
+ ./words "\$@"
+ popd >/dev/null
+EOF
+ install -Dm755 words.sh "$pkgdir/usr/bin/words"
+
+ # license
+ cat > LICENSE <<-EOF
+ Quoting from wordsdoc.htm:
+
+ This is a free program, which means it is proper to copy it and pass it on to
+ your friends. Consider it a developmental item for which there is no charge.
+ However, just for form, it is Copyrighted (c). Permission is hereby freely
+ given for any and all use of program and data. You can sell it as your own,
+ but at least tell me.
+
+ and later in the same document:
+
+ Licence
+
+ All parts of the WORDS system, source code and data files, are made freely
+ available to anyone who wishes to use them, for whatever purpose.
+EOF
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/latin-words/LICENSE"
}