blob: c1e58ecde4ef6d3de8d473011372ddc42d15e556 (
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
|
# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: grant0417 <grant0417@protonmail.com>
pkgname=moebius
pkgver=1.0.29
pkgrel=3
pkgdesc="Modern ANSI & ASCII Art Editor"
arch=('any')
url="https://github.com/blocktronics/moebius"
license=('APACHE')
depends=('electron9')
makedepends=('npm')
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz"
"$pkgname.sh"
"$pkgname.desktop")
sha256sums=('b0cdbc8d91ff07c5a826f6c2738f6aeaded4b397350422770a7b05f9ac60652b'
'99165de73de69f8d0ef67850d2b9b8f9c28d47eedd80730f7b7244a17f18f834'
'3ec191df8ad9214ebe65716c21beaba36f54322c87d94f254190c0a29a75e674')
build() {
cd "$pkgname-$pkgver"
_electronVer="$(</usr/lib/electron9/version)"
HOME="$srcdir/.electron-gyp" npm install --cache "${srcdir}/npm-cache"
./node_modules/.bin/electron-builder --linux --dir dist \
-c.electronDist=/usr/lib/electron9 -c.electronVersion="$_electronVer"
}
package() {
install -D "$pkgname.sh" "$pkgdir/usr/bin/$pkgname"
install -Dm 644 "$pkgname.desktop" -t "$pkgdir/usr/share/applications/"
cd "$pkgname-$pkgver"
install -d "$pkgdir/usr/lib/$pkgname/"
cp -a --no-preserve=ownership dist/linux-unpacked/resources/* "$pkgdir/usr/lib/$pkgname/"
}
|