summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorFrédéric Mangano2016-01-27 14:10:34 +0100
committerFrédéric Mangano2016-01-27 14:11:04 +0100
commitcf025735dc345f303f32be9a1acbe843071f6bb3 (patch)
tree23eb32eec8c1ce9877d2d6c333ef4de4624aa7dd /PKGBUILD
downloadaur-cf025735dc345f303f32be9a1acbe843071f6bb3.tar.gz
working package tested against wish-git
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD27
1 files changed, 27 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8fe33b892bd
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Frédéric Mangano <fmang+aur mg0.fr>
+
+pkgname=wish-edict
+pkgver=20160127
+pkgrel=1
+pkgdesc='Japanese-English dictionaries EDICT2 and KANJIDIC for Wish'
+license=('Creative Commons BY-SA')
+url='http://www.edrdg.org/jmdict/edict.html'
+
+arch=('any')
+depends=('wish')
+
+source=('http://ftp.monash.edu.au/pub/nihongo/kanjidic.gz'
+ 'http://ftp.monash.edu.au/pub/nihongo/edict2.gz')
+sha256sums=('0408ce65ff629707a359d5e534e90f1c5f915cd9c865330215dbdf0db3f971b0'
+ '4f29b8265d5b4b1bff5b93b791a438b93b77ca7c0970871d885d8d3fd291e813')
+
+build() {
+ cd "$srcdir"
+ wdic --database db --load --kanjidic kanjidic --edict edict2
+}
+
+package() {
+ cd "$srcdir"
+ install -dm755 "$pkgdir/usr/share/wish/db"
+ install -m644 db/* "$pkgdir/usr/share/wish/db"
+}