summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorVitrum2018-09-08 23:30:35 +0300
committerVitrum2018-09-08 23:30:35 +0300
commit7944c4531b6c63c2c496a663bc7558ce0af3766d (patch)
tree6a325f62f40ab18e94023d5a60bf8827b3402e25
parent9cbb11a7c5c440755152eb06ce67b7af0820b92e (diff)
downloadaur-7944c4531b6c63c2c496a663bc7558ce0af3766d.tar.gz
set PAUSE_IN_SCREEN off; new maintainer
-rw-r--r--.SRCINFO12
-rw-r--r--PKGBUILD91
-rw-r--r--license.txt5
-rw-r--r--words.sh4
4 files changed, 67 insertions, 45 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 9354c8605f8..c271fb66c8e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,21 +1,15 @@
pkgbase = latin-words
pkgdesc = William Whitaker's Latin-English-Latin intelligent dictionary and Latin text analyser.
pkgver = 1.97FC
- pkgrel = 5
+ pkgrel = 6
url = http://archives.nd.edu/whitaker/words.htm
arch = i686
arch = x86_64
license = custom
makedepends = gcc-ada
- makedepends = unzip
- provides = wordslatin
- conflicts = wordslatin
- source = http://archives.nd.edu/whitaker/wordsall.zip
- source = words.sh
- source = license.txt
+ depends = bash
+ source = latin-words-1.97FC.zip::http://archives.nd.edu/whitaker/wordsall.zip
sha256sums = 592134d7602879e0937b6f977a6f63aa1d14b813edaf6de04a1d8596a9a2c18e
- sha256sums = 227bd31f84236127628d4332629dafe19c412d4bc41c4f269a74eb40205a8b82
- sha256sums = d56ae6b06a2707b497f6f52b0bd6b15784bdba45586cc3e8bec789e14e025d99
pkgname = latin-words
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"
}
diff --git a/license.txt b/license.txt
deleted file mode 100644
index c62faaddbee..00000000000
--- a/license.txt
+++ /dev/null
@@ -1,5 +0,0 @@
-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.
diff --git a/words.sh b/words.sh
deleted file mode 100644
index 7039340c6ab..00000000000
--- a/words.sh
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/bash
-pushd /usr/share/words-PKGVER >/dev/null
-./words "$@"
-popd >/dev/null