blob: 1d4bd0d99a8808ba0ed5f150faf7574d66f2ea22 (
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
|
# Maintainer: Danilo Bargen <aur at dbrgn dot ch>
#
# PGP key is on keyservers. To import:
#
# gpg --receive-keys 7EF3061F5C8D5E25
#
# See https://wiki.archlinux.org/index.php/Makepkg#Signature_checking
# for more details # on package signing.
pkgname=librepcb-appimage
pkgver=1.1.0
_pkgver=${pkgver/_/-}
pkgrel=1
pkgdesc="A free EDA software to develop printed circuit boards (binary AppImage version)"
arch=('x86_64')
url="https://librepcb.org/"
license=('GPL')
depends=('hicolor-icon-theme')
provides=('librepcb')
conflicts=('librepcb')
_appimage="librepcb-${_pkgver}-linux-${arch[0]}.AppImage"
noextract=("${_appimage}")
options=('!strip' '!emptydirs')
source=(
"https://download.librepcb.org/releases/${_pkgver}/${_appimage}"
"https://download.librepcb.org/releases/${_pkgver}/${_appimage}.asc"
)
sha256sums=(
'b29f940e12e4cc6fa087146fb5b78deab3fc41f965c157987fd9924824705c28'
'SKIP'
)
validpgpkeys=('D6F9AF572228C5BCD6B538407EF3061F5C8D5E25')
build() {
chmod +x ${_appimage}
./${_appimage} --appimage-extract 2>/dev/null
chmod -x ${_appimage}
}
package() {
# Appimage
install -D -m755 "${srcdir}/${_appimage}" "${pkgdir}/usr/local/bin/librepcb"
# Metadata
mkdir -p "${pkgdir}/usr/share"
cp -R "squashfs-root/opt/share/applications" "${pkgdir}/usr/share/"
cp -R "squashfs-root/opt/share/icons" "${pkgdir}/usr/share/"
cp -R "squashfs-root/opt/share/metainfo" "${pkgdir}/usr/share/"
cp -R "squashfs-root/opt/share/mime" "${pkgdir}/usr/share/"
find "${pkgdir}/usr/share" -type d -exec chmod 755 {} \;
find "${pkgdir}/usr/share" -type f -exec chmod 644 {} \;
}
# vim:set ts=2 sw=2 et:
|