blob: 2a9bf1c880b8142d21fb1659620e3271579c2ae6 (
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Maintainer=yuh <yuhldr@qq.com>
pkgdata=ldr-translate
pkgname=$pkgdata-gtk
pkgver=1.5.0
pkgrel=2
epoch=
pkgdesc="一个翻译软件,更适合gnome桌面,专注文献翻译,可以截图翻译、复制翻译等,顺带显示网速等系统信息"
arch=('x86_64')
url="https://github.com/yuhldr/$pkgdata"
license=('GPL')
groups=(ldr)
depends=(make python libappindicator-gtk3 python-psutil python-requests)
checkdepends=()
optdepends=(gnome-shell-extension-appindicator)
provides=()
conflicts=($pkgdata-qt)
replaces=()
backup=()
options=()
install=
changelog=
source=("https://github.com/yuhldr/$pkgdata/archive/refs/tags/v$pkgver.tar.gz")
noextract=()
md5sums=(c4c894d9da1f87cd4344d61d9d11c1c9)
validpgpkeys=()
prepare() {
cd "$pkgdata-$pkgver"
echo "ldr"
}
package() {
cd "$pkgdata-$pkgver"
mkdir -p "$pkgdir"/usr/bin
mkdir -p "$pkgdir"/usr/share/applications
mkdir -p "$pkgdir"/usr/share/icons
mkdir -p "$pkgdir"/opt/ldr-translate
cp data/ldr "$pkgdir"/usr/bin/
cp data/icon/icon.png "$pkgdir"/usr/share/icons/ldr-translate.png
cp data/ldr-translate.desktop "$pkgdir"/usr/share/applications/
cp -r api data/icon data/config.json data/config_locale.json "$pkgdir"/opt/ldr-translate/
sudo cp gui/gtk/* "$pkgdir"/opt/ldr-translate/
}
|