blob: 5b1a613bf6b8ab3fe0d8b422999f06bf4e560fb8 (
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.115.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=('0563a6fceb8c82c5e30a8e29aaf295dd30165aa51154f9aee9bae03419994d46')
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"
}
|