summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD45
-rw-r--r--words.sh6
3 files changed, 30 insertions, 31 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 324db0f854c..1c88cfb3c8d 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,8 @@
pkgbase = latin-words
- pkgdesc = Latin-english-latin intelligent dictionary and latin text analyser
+ pkgdesc = William Whitaker's Latin-English-Latin intelligent dictionary and Latin text analyser.
pkgver = 1.97FC
pkgrel = 4
- url = http://users.erols.com/whitaker/words.htm
+ url = http://archives.nd.edu/whitaker/words.htm
arch = i686
arch = x86_64
license = custom
@@ -13,9 +13,9 @@ pkgbase = latin-words
source = http://archives.nd.edu/whitaker/wordsall.zip
source = words.sh
source = license.txt
- md5sums = e70ae2112bb7c7c491c3ec7a57af779c
- md5sums = a8a9a0b6dd56aacaeefaa7e1bd8077c8
- md5sums = 43cc5e098f51e02401d2a140cb8a6796
+ sha256sums = 592134d7602879e0937b6f977a6f63aa1d14b813edaf6de04a1d8596a9a2c18e
+ sha256sums = bb28ad17c88c697be157660ef9f6cd60895e77307317bcd417e269054b206b30
+ sha256sums = d56ae6b06a2707b497f6f52b0bd6b15784bdba45586cc3e8bec789e14e025d99
pkgname = latin-words
diff --git a/PKGBUILD b/PKGBUILD
index 25d583ef1ec..d88acc899ed 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,37 +3,36 @@
pkgname=latin-words
pkgver=1.97FC
pkgrel=4
-pkgdesc="Latin-english-latin intelligent dictionary and latin text analyser"
+pkgdesc="William Whitaker's Latin-English-Latin intelligent dictionary and Latin text analyser."
arch=("i686" "x86_64")
-url="http://users.erols.com/whitaker/words.htm"
+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")
-md5sums=('e70ae2112bb7c7c491c3ec7a57af779c' 'a8a9a0b6dd56aacaeefaa7e1bd8077c8'\
- '43cc5e098f51e02401d2a140cb8a6796')
+sha256sums=('592134d7602879e0937b6f977a6f63aa1d14b813edaf6de04a1d8596a9a2c18e'
+ 'bb28ad17c88c697be157660ef9f6cd60895e77307317bcd417e269054b206b30'
+ 'd56ae6b06a2707b497f6f52b0bd6b15784bdba45586cc3e8bec789e14e025d99')
build() {
- cd $srcdir
- unzip -quo wordsall || return 1
- gnatmake -O3 words || return 1
- gnatmake makedict && echo "g" | ./makedict || return 1
- gnatmake makestem && echo "g" | ./makestem || return 1
- gnatmake makeefil && ./makeefil || return 1
- gnatmake makeinfl && ./makeinfl || return 1
+ cd "$srcdir"
+ unzip -quo wordsall
+ 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 || return 1
- install -m644 ADDONS.LAT DICTFILE.GEN EWDSFILE.GEN INDXFILE.GEN \
- INFLECTS.SEC STEMFILE.GEN UNIQUES.LAT \
- $pkgdir/usr/share/words-$pkgver/ || return 1
- install -Dm644 wordsdoc.htm \
- $pkgdir/usr/share/doc/words-$pkgver/wordsdoc.htm || return 1
- install -D words.sh $pkgdir/usr/bin/words || return 1
- sed -s "s/PKGNAME/words/" -i $pkgdir/usr/bin/words || return 1
- sed -s "s/PKGVER/$pkgver/" -i $pkgdir/usr/bin/words || return 1
- install -Dm644 license.txt \
- $pkgdir/usr/share/licenses/latin-words/LICENSE || return 1
+ 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"
}
diff --git a/words.sh b/words.sh
index 1dc42929397..7039340c6ab 100644
--- a/words.sh
+++ b/words.sh
@@ -1,4 +1,4 @@
#!/bin/bash
-pushd /usr/share/words-PKGVER
-./words
-popd \ No newline at end of file
+pushd /usr/share/words-PKGVER >/dev/null
+./words "$@"
+popd >/dev/null