blob: 9a1f19def9997a8c057ea417f3138c4029f24c64 (
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
|
# Maintainer: Sylvester Keil <sylvester@keil.or.at>
pkgname='tropy-bin'
pkgver='1.16.2'
pkgrel=1
pkgdesc='Explore your research photos'
arch=('x86_64')
url='https://tropy.org'
license=('AGPL-3.0-or-later')
depends=(
'electron28'
'gcc-libs'
'glib2'
'glibc'
'hicolor-icon-theme'
'sh'
'xdg-utils')
optdepends=()
makedepends=()
provides=('tropy')
conflicts=('tropy' 'tropy-appimage')
options=(!strip)
source=(
'tropy.sh'
"https://github.com/tropy/tropy/releases/download/v${pkgver}/tropy-${pkgver}-x64.tar.bz2")
sha256sums=('33a0ee41a99156cf8986b3771ba8fea38b0d23d75fc09bef0f1254fe4fb47952'
'351af6990ca00c8648c92bdb330d7d3a20018a125c934a8440c29e11a79fd1a1')
package() {
install -dm755 "${pkgdir}/usr/lib/tropy"
install -dm755 "${pkgdir}/usr/share/applications"
install -dm755 "${pkgdir}/usr/share/icons"
install -dm755 "${pkgdir}/usr/share/mime"
install -dm755 "${pkgdir}/usr/share/metainfo"
install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}"
cd "${srcdir}"
install -Dm755 tropy.sh "${pkgdir}/usr/bin/tropy"
install -m644 -t "${pkgdir}/usr/share/applications" \
org.tropy.Tropy.desktop
install -m644 -t "${pkgdir}/usr/share/metainfo" \
org.tropy.Tropy.metainfo.xml
cd resources
install -m644 -t "${pkgdir}/usr/lib/tropy/" app.asar
cp -r app.asar.unpacked "${pkgdir}/usr/lib/tropy"
find "${pkgdir}/usr/lib/tropy" -type d -print0 | \
xargs -I {} -0 chmod 755 "{}"
find "${pkgdir}/usr/lib/tropy" -type f -print0 | \
xargs -I {} -0 chmod 644 "{}"
cp -r mime "${pkgdir}/usr/share/"
cp -r icons "${pkgdir}/usr/share/"
find "${pkgdir}/usr/share" -type d -print0 | \
xargs -I {} -0 chmod 755 "{}"
find "${pkgdir}/usr/share" -type f -print0 | \
xargs -I {} -0 chmod 644 "{}"
cd app.asar.unpacked
install -m644 -t "${pkgdir}/usr/share/licenses/${pkgname}/" \
LICENSE LICENSE.chromium.html LICENSE.third-party.txt
}
|