blob: f432b271e61fabf586f2e7de4ebfdde7d38e770a (
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-qt
pkgver=1.7.0
pkgrel=1
epoch=
pkgdesc="一个翻译软件,更适合kde桌面,专注文献翻译,可以截图翻译、复制翻译"
arch=('x86_64')
url="https://github.com/yuhldr/$pkgdata"
license=('GPL')
groups=(ldr)
depends=(python python-requests python-pyqt5)
checkdepends=()
optdepends=()
provides=()
conflicts=($pkgdata-gtk)
replaces=()
backup=()
options=()
install=
changelog=
source=("https://github.com/yuhldr/$pkgdata/archive/refs/tags/v$pkgver.tar.gz")
noextract=()
md5sums=(a2dce1d8eb2f11773bd05fd4e2312a2d)
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 utils api data/icon data/config.json data/version.json data/locales "$pkgdir"/opt/ldr-translate/
cp gui/qt/* "$pkgdir"/opt/ldr-translate/
}
|