blob: dd31862ff899df0d9d8295ae3c7764d6f6c4231c (
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
# Maintainer: Misaka13514 <Misaka13514 at gmail dot com>
pkgname=easyeda-pro-electron
_pkgname=${pkgname%-electron}
pkgver=2.2.28.1
pkgrel=1
pkgdesc="EasyEDA Professional Edition. Run with system electron."
arch=('x86_64' 'aarch64')
url="https://pro.easyeda.com/"
license=('LicenseRef-EasyEDA-Proprietary')
depends=('electron' 'libnotify' 'libappindicator-gtk3')
makedepends=()
provides=($_pkgname)
conflicts=($_pkgname $_pkgname-git $_pkgname-bin)
install=$pkgname.install
source=("LICENSE-$pkgver.html::https://easyeda.com/page/legal"
"$pkgname.install"
"$_pkgname.sh")
source_x86_64=("$_pkgname-x86_64-$pkgver.zip::https://image.easyeda.com/files/easyeda-pro-linux-x64-$pkgver.zip")
source_aarch64=("$_pkgname-aarch64-$pkgver.zip::https://image.easyeda.com/files/easyeda-pro-linux-arm64-$pkgver.zip")
sha256sums=('SKIP'
'ab64abe7821e4ea37a0e4d1f77c94f37d6a51c7df2038ba7b609c640adf8e51d'
'89289056ed4b5d051280e3a69dfb550b6914f470f201be1ca3b165ddd4f3e435')
sha256sums_x86_64=('3fc30f588837587000337b516159adc1ede61b0db90fb38b80917d0bd2b1ac65')
sha256sums_aarch64=('a215ac874282417531d3d275303ef1932a73e29831ba13ace87e0dc89092665a')
package() {
cd $srcdir
install -Dm755 $_pkgname.sh $pkgdir/usr/bin/$_pkgname
install -Dm644 LICENSE-$pkgver.html $pkgdir/usr/share/licenses/$pkgname/LICENSE.html
cd $srcdir/$_pkgname
install -Dm644 EasyEDA-Distribution-License.txt \
$pkgdir/usr/share/licenses/$pkgname/EasyEDA-DLA.txt
install -dm755 $pkgdir/usr/lib/$_pkgname
cp -dpr --no-preserve=ownership resources $pkgdir/usr/lib/$_pkgname
cp -dpr --no-preserve=ownership locales $pkgdir/usr/lib/$_pkgname
# icon
local _icon
for _icon in 16 32 64 128 256 512; do
install -Dm644 icon/icon_${_icon}x${_icon}.png \
$pkgdir/usr/share/icons/hicolor/${_icon}x${_icon}/apps/$_pkgname.png
done
if [ -f icon/icon_512x512@2x.png ]; then
install -Dm644 icon/icon_512x512@2x.png \
$pkgdir/usr/share/icons/hicolor/1024x1024/apps/$_pkgname.png
fi
# desktop entry
if [ -f easyeda-pro.dkt ]; then
install -Dm644 easyeda-pro.dkt \
$pkgdir/usr/share/applications/$_pkgname.desktop
sed -i 's|/opt/easyeda-pro/icon/icon_128x128.png|easyeda-pro|g' \
$pkgdir/usr/share/applications/$_pkgname.desktop
sed -i 's|/opt/easyeda-pro/||g' \
$pkgdir/usr/share/applications/$_pkgname.desktop
else
install -Dm644 /dev/stdin $pkgdir/usr/share/applications/$_pkgname.desktop << "EOF"
[Desktop Entry]
Categories=Development;Electronics;
Comment=A Simple and Powerful Electronic Circuit Design Tool
Exec=easyeda-pro %f
Keywords=PCB;EasyEDA;EDA
GenericName=EasyEDA Pro
Icon=easyeda-pro
Name=EasyEDA Pro
Type=Application
Name[en_US]=EasyEDA Pro
MimeType=application/eprj
EOF
fi
}
|