summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authortuberry2020-11-22 19:46:21 +0800
committertuberry2020-11-22 19:46:21 +0800
commit7d7a945c0f2f40cbc40a1a298526014a7388359a (patch)
tree748e983299e079699641765adae931d744e4efe8 /PKGBUILD
parent99cefb8ee76c1104d0b2a3a3889b80562b99ba21 (diff)
downloadaur-7d7a945c0f2f40cbc40a1a298526014a7388359a.tar.gz
update
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD21
1 files changed, 18 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 48a116b56f5..1bfb447a032 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,9 @@
# Maintainer: tuberry
_srcname=dict-cedict
+_txtname=cedict_1_0_ts_utf-8_mdbg.txt
pkgname=dict-cedict-git
-pkgver=20201117.r5.255bb57
+pkgver=20201121.r6.1a76c1e
pkgrel=1
pkgdesc="A port of CC-CEDICT database for dictd et al."
arch=('any')
@@ -13,8 +14,10 @@ makedepends=('dictd' 'git' 'python' 'curl')
provides=('dict-cedict')
conflicts=('dict-cedict')
install=${pkgname}.install
-source=("git+https://github.com/tuberry/${_srcname}")
-sha512sums=('SKIP')
+source=("${_txtname}.gz::https://www.mdbg.net/chinese/export/cedict/${_txtname}.gz"
+ "git+https://github.com/tuberry/${_srcname}")
+sha512sums=('SKIP'
+ 'SKIP')
pkgver()
{
@@ -25,6 +28,18 @@ pkgver()
"$( git rev-parse --short HEAD )"
}
+prepare()
+{
+ cd ${_srcname}
+ ln -sf ${srcdir}/${_txtname} ${_txtname}
+}
+
+build()
+{
+ cd ${_srcname}
+ make
+}
+
package()
{
cd ${_srcname}