blob: 03226fc7e03bf04f2cd8b6cae3144713687adff7 (
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
|
# Maintainer: Jonian Guveli <jonian@hardpixel.eu>
# Contributor: Giusy Digital <kurmikon@libero.it>
pkgname="pulsar-bin"
pkgver=1.123.0
pkgrel=1
pkgdesc="A community-led hyper-hackable text editor, built on electron"
arch=("x86_64")
url="https://github.com/pulsar-edit/pulsar"
license=("MIT")
depends=("libxkbfile" "ripgrep")
optdepends=(
"ctags: symbol indexing support"
"git: Git and GitHub integration"
"hunspell: spell check integration"
)
provides=("pulsar")
conflicts=("pulsar")
source=("pulsar-${pkgver}.deb::$url/releases/download/v${pkgver}/Linux.pulsar_${pkgver}_amd64.deb")
sha256sums=('606242128aa044ea24e812e376862fe7fc2e4656fddfa418ae61cd9095967972')
prepare() {
bsdtar xf data.tar.xz
}
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 {} +
install -Dm644 "$pkgdir/opt/Pulsar/resources/pulsar.svg" -t "$pkgdir/usr/share/icons/hicolor/scalable/apps"
install -Dm755 -d "$pkgdir/usr/bin"
chmod +x "$pkgdir/opt/Pulsar/resources/pulsar.sh"
ln -sf "/opt/Pulsar/resources/pulsar.sh" "$pkgdir/usr/bin/pulsar"
}
|