blob: b68f1ebc4a9a11362218c22da3dd08f7f283e363 (
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
|
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.
# Maintainer: Pocketnet team <support@pocketnet.app>
pkgname=bastyon
pkgver=0.9.111
pkgrel=1
epoch=
pkgdesc="A Revolutionary anti-censorship decentralized publishing and social platform."
arch=("any")
url="https://github.com/pocketnetteam/pocketnet.gui"
license=("Apache-2.0")
groups=()
depends=()
makedepends=("git" "npm")
checkdepends=()
optdepends=()
provides=()
conflicts=("bastyon-bin")
replaces=()
backup=()
options=()
install=
changelog=
source=("git+$url.git")
noextract=()
sha256sums=("SKIP")
validpgpkeys=()
prepare() {
cd "$srcdir/pocketnet.gui"
npm install
}
build() {
cd "$srcdir/pocketnet.gui"
npm run build
npm run packl
}
package() {
cd "$srcdir/pocketnet.gui"
install -dm755 "$pkgdir/opt/Bastyon"
install -dm755 "$pkgdir/usr/share/applications"
install -dm755 "$pkgdir/usr/share/icons/hicolor"
cp -rf "dist/linux-unpacked/." "$pkgdir/opt/Bastyon"
cp -f "share/applications/bastyon.desktop" "$pkgdir/usr/share/applications"
sizes=("16x16" "32x32" "48x48" "64x64" "128x128" "256x256" "512x512" "1024x1024")
for size in "${sizes[@]}"
do
if [ -f "res/electron/icons/png/$size.png" ]; then
install -dm755 "$pkgdir/usr/share/icons/hicolor/$size/apps"
cp -f "res/electron/icons/png/$size.png" "$pkgdir/usr/share/icons/hicolor/$size/apps/$pkgname.png"
fi
done
rm -rf "$srcdir/pocketnet.gui"
}
|