blob: 6cbe8e1b4f0538cce692aa836785ccacc17941bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# Maintainer: Ben <bensongsyz@gmail.com>
pkgname='wudao-dict-git'
pkgver=2.1
pkgrel=2
pkgdesc='The command line version of Youdao Dictionary, supporting English-Chinese mutual search and online search.'
arch=('any')
url="https://github.com/ChestnutHeng/Wudao-dict"
license=('unknown')
depends=('python' 'python-bs4' 'python-lxml')
install="wudao-dict-git.install"
makedepends=('git')
source=('wudao-dict::git://github.com/ChestnutHeng/Wudao-dict.git'
'wd')
md5sums=('SKIP'
'7e504991b277c83136466f885626cd7c')
package() {
mkdir -p "${pkgdir}/opt"
cp -r "./wudao-dict/wudao-dict" "${pkgdir}/opt/"
# # 添加系统命令wd
mkdir -p "${pkgdir}/usr/bin"
cp ./wd "${pkgdir}/usr/bin"
# 添加bash_completion自动补全
mkdir -p "${pkgdir}/etc/bash_completion.d"
ln -s /opt/wudao-dict/wd_com "${pkgdir}/etc/bash_completion.d/wd"
}
|