blob: 4b0bbfd3d0548ad8a6c9bbc7b89d61ffa75d6fd1 (
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
|
# Maintainer: Carl Smedstad <carsme@archlinux.org>
pkgname=pev2-electron
_pkgname=pev2
pkgver=1.12.1
pkgrel=1
pkgdesc="Postgres Explain Visualizer 2, using the system Electron package"
arch=(any)
url="https://github.com/dalibo/pev2"
license=(PostgreSQL)
depends=(electron)
makedepends=(npm)
source=(
"$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
"pev2.sh"
"pev2.desktop"
"remove-demo-notice.patch"
)
sha256sums=(
'd8b5ef5fa7f9ac2f2f0aea227b33b0acbbaeb42a687bdcfe810b6d0ba60c9d59'
'd4361d563a1c199b5887154ac5f4d8009dc2c882b409c8f4bbf00281a2e910e4'
'219229650df88bf6f8ffc0bb53bf2986a479d0144c0fa93949996b58ed4e7d8e'
'4e6d2bf9298e95e63e7bba7f2e96cfef031c0b77da88ed2e7bf0106b880f283b'
)
prepare() {
cd $_pkgname-$pkgver
patch --forward --strip=1 --input="$srcdir/remove-demo-notice.patch"
sed -i 's/.*husky.*//' package.json
}
build() {
cd $_pkgname-$pkgver
npm install --cache "$srcdir/npm-cache" .
npm run build
}
package() {
cd $_pkgname-$pkgver
install -vDm644 -t "$pkgdir/usr/lib/pev2" dist-app/index.html
install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
install -vDm644 -t "$pkgdir/usr/share/applications" "$srcdir/pev2.desktop"
install -vDm755 "$srcdir/pev2.sh" "$pkgdir/usr/bin/pev2"
}
|