blob: 150c0200530a2321f3cbc7e5a0f4ae2932693ba6 (
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: Jonian Guveli <jonian@hardpixel.eu>
# Contributor: Giusy Digital <kurmikon@libero.it>
_appname=pulsar
_reponame=pulsar-edit
_tasktag=5164010308370432
_datetag=2022111116
pkgname="${_appname}-bin"
pkgver="1.63.${_datetag}"
pkgrel=1
pkgdesc="Community build of the hackable text editor, built on Electron"
arch=("x86_64")
url="https://github.com/${_reponame}/${_appname}"
license=("MIT")
depends=("libxkbfile" "ripgrep")
makedepends=("asar")
optdepends=(
"ctags: symbol indexing support"
"git: Git and GitHub integration"
"hunspell: spell check integration"
)
provides=("${_appname}")
conflicts=("${_appname}")
source=("${_appname}-${pkgver}.deb::https://api.cirrus-ci.com/v1/artifact/task/${_tasktag}/binary/binaries/${_appname}_${pkgver}_amd64.deb")
sha256sums=('49eb877093a19eb5f1902dc2e4b3d4e9f5b598dd63ad3d7dcfa109507c09064d')
prepare() {
bsdtar xf data.tar.xz
asar e opt/Pulsar/resources/app.asar asar
}
package() {
mv opt "$pkgdir"
mv usr "$pkgdir"
# Cleanup specs. Remove if implemented upstream
find "$pkgdir/opt/Pulsar/resources/app/ppm" -type d -name "spec" -exec rm -rf {} +
find "$pkgdir/opt/Pulsar/resources/app.asar.unpacked" -type d -name "spec" -exec rm -rf {} +
# This needs removal along with asar makedepend when fixed upstream
mkdir -p "$pkgdir/opt/Pulsar/resources/app.asar.unpacked/node_modules/github/"
mv asar/node_modules/github/bin "$pkgdir/opt/Pulsar/resources/app.asar.unpacked/node_modules/github/bin"
rm -rf asar
mkdir -p "$pkgdir/usr/bin"
chmod +x "$pkgdir/opt/Pulsar/resources/${_appname}.sh"
ln -sf "/opt/Pulsar/resources/${_appname}.sh" "$pkgdir/usr/bin/${_appname}"
}
|