summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authortuberry2020-11-18 14:49:26 +0800
committertuberry2020-11-18 14:49:26 +0800
commit98ce89f1ef271ac2c80e17948bf71b778b282faf (patch)
tree4c055b34d7f60f796bc31e8bed3a3f93db17dec5 /PKGBUILD
downloadaur-98ce89f1ef271ac2c80e17948bf71b778b282faf.tar.gz
change pkgname
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7450be0c2ca
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: tuberry
+
+_srcname=dict-cedict
+pkgname=dict-cedict-git
+pkgver=20201117.r5.255bb57
+pkgrel=1
+pkgdesc="A port of CC-CEDICT database for dictd et al."
+arch=('any')
+url="https://www.mdbg.net/chinese/dictionary?page=cc-cedict"
+license=('CCPL')
+optdepends=('dictd: dict client and server')
+makedepends=('dictd' 'git' 'python' 'curl' 'gzip')
+provides=('dict-cedict')
+conflicts=('dict-cedict')
+install=${pkgname}.install
+source=("git+https://github.com/tuberry/${_srcname}")
+sha512sums=('SKIP')
+
+pkgver()
+{
+ cd ${_srcname}
+ printf "%s.r%s.%s" \
+ "$( curl ${url} 2>&1 | grep Latest | grep -Eo '[[:digit:]]{4}-[[:digit:]]{2}-[[:digit:]]{2}' | tr -d '-' )" \
+ "$( git rev-list --count HEAD )" \
+ "$( git rev-parse --short HEAD )"
+}
+
+package()
+{
+ cd ${_srcname}
+ make DESTDIR=${pkgdir} install
+}