blob: ec4ac4de6c01d838f8fb636a0621d3884afae954 (
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
|
# Maintainer: Vasilly Prokopyev <Vasilly.Prokopyev at google mail>
# Contributor: 欠陥電気 <misaka13514 at google mail>
pkgname=easyeda-bin
_pkgname=${pkgname%-bin}
pkgver=6.5.46
pkgrel=1
pkgdesc="A Simple and Powerful Electronic Circuit Design Tool"
arch=('x86_64')
url="https://easyeda.com/"
license=('LicenseRef-EasyEDA-Proprietary')
depends=('gtk3' 'nss' 'libxss' 'alsa-lib')
makedepends=()
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("${_pkgname}-${pkgver}.zip::https://image.easyeda.com/files/${_pkgname}-linux-x64-${pkgver}.zip"
"LICENSE-$pkgver.html::https://easyeda.com/page/legal")
sha256sums=('ef31679409866db0c95c53d93830e8431897c17bc59104c4eca6f84b4a178548'
'SKIP')
package() {
install -dm755 ${pkgdir}/opt/${_pkgname}
mv ${srcdir}/easyeda-linux-x64/* ${pkgdir}/opt/${_pkgname}
# icon
local _icon
for _icon in 16 32 48 64 128 256; do
install -Dm644 ${pkgdir}/opt/${_pkgname}/icon/${_icon}x${_icon}/${_pkgname}.png \
${pkgdir}/usr/share/icons/hicolor/${_icon}x${_icon}/apps/${_pkgname}.png
done
rm -rf ${pkgdir}/opt/${_pkgname}/icon
# desktop entry
install -Dm644 ${pkgdir}/opt/${_pkgname}/EASYEDA.dkt \
${pkgdir}/usr/share/applications/${_pkgname}.desktop
sed -i 's|/opt/easyeda/icon/128x128/easyeda.png|easyeda|g' \
${pkgdir}/usr/share/applications/${_pkgname}.desktop
sed -i 's|/opt/easyeda/||g' \
${pkgdir}/usr/share/applications/${_pkgname}.desktop
rm -rf ${pkgdir}/opt/${_pkgname}/EASYEDA.dkt
# soft link
install -dm755 ${pkgdir}/usr/bin
ln -s /opt/${_pkgname}/${_pkgname} ${pkgdir}/usr/bin/${_pkgname}
chmod 755 ${pkgdir}/opt/${_pkgname}/${_pkgname}
# LICENSE
install -Dm644 LICENSE-$pkgver.html ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.html
}
|