blob: fad0d889522a71289f26fc784cfb1e58978d6127 (
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
49
50
51
52
53
54
55
56
57
58
59
|
# Maintainer: witt <1989161762 at qq dot com>
pkgname=eco-paste-beta-bin
_pkgname="EcoPaste"
pkgver=0.4.0
pkgrel=1
pkgdesc="内测预览版!!!🎉跨平台的剪贴板管理工具 | Cross-platform clipboard management tool ."
arch=('any')
url="https://github.com/EcoPasteHub/EcoPaste"
license=('Apache-2.0')
provides=("eco-paste" "EcoPaste" "eco-paste-beta")
conflicts=("eco-paste" "eco-paste-git" "eco-paste-appimage" "eco-paste-bin")
depends=("webkit2gtk-4.1")
optdepends=()
_ocr_languages=(afr amh ara asm aze_cyrl aze bel ben bod bos bre bul cat ceb ces chi_sim chi_sim_vert
chi_tra chi_tra_vert chr cos cym dan deu div dzo ell eng enm epo est eus fao fas fil fin fra frk
frm fry gla gle glg grc guj hat heb hin hrv hun hye iku ind isl ita_old ita jav jpn jpn_vert kan
kat_old kat kaz khm kir kmr kor kor_vert lao lat lav lit ltz mal mar mkd mlt mon mri msa mya nep
nld nor oci ori osd pan pol por pus que ron rus san sin slk slv snd spa_old spa sqi srp_latn srp
sun swa swe syr tam tat tel tgk tha tir ton tur uig ukr urd uzb_cyrl uzb vie yid yor)
for lang in "${_ocr_languages[@]}"; do
# if [[ $lang == osd ]]; then continue; fi
_depends="tesseract-data-best-${lang}: ${lang} supported image OCR library tesseract";
optdepends+=("${_depends}");
done
source=(
"${_pkgname}-${pkgver}_amd64.deb::${url}/releases/download/v${pkgver}/${_pkgname}_${pkgver}_amd64.deb"
"LICENSE::https://raw.githubusercontent.com/EcoPasteHub/EcoPaste/refs/heads/master/LICENSE"
)
sha256sums=('3973874e5d2cb2d8fa4720b8970b5edebb074d709211ca08c61d4fd001d73e3a'
'c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4')
# 修复不能出现短线的问题
fixver(){
pkgver="${pkgver//[:\/\- ]/}";
}
fixver;
build() {
mkdir -p "build/";
bsdtar -xf data.tar.gz -C "build/"
}
package() {
# binary
install -Dm755 "${srcdir}/build/usr/bin/"* -t "${pkgdir}/usr/bin/"
# desktop
install -Dm644 "${srcdir}/build/usr/share/applications/"*.desktop -t "${pkgdir}/usr/share/applications"
cd "${srcdir}/build/";
# icon
find "usr/share/icons" -type f -exec install -Dm644 {} "${pkgdir}/{}" \;
# lib
find "usr/lib/${_pkgname}/assets" -type f -exec install -Dm644 {} "${pkgdir}/{}" \;
# license
install -Dm644 "${srcdir}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
# vim: set sw=2 ts=2 et:
|