blob: 0415ac3091d6358ded63b126d1aeb93e16245b9c (
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
|
# Maintainer: littzhch <2371050115@qq.com>
_electron_ver=27
_pkgname=stretchly
pkgname="$_pkgname"-electron-bin
pkgver=1.16.0
pkgrel=1
pkgdesc="The break time reminder app"
arch=('any')
url="https://github.com/hovancik/stretchly/"
license=('BSD')
depends=('gtk3' 'http-parser' 'libappindicator-gtk3' 'libnotify' 'libxcrypt-compat' 'libxss' "electron$_electron_ver")
provides=('stretchly')
conflicts=('stretchly')
source=( "LICENSE::https://raw.githubusercontent.com/hovancik/stretchly/v$pkgver/LICENSE"
"$url/releases/download/v$pkgver/$_pkgname-$pkgver.pacman")
sha256sums=('d4262f71a6c02b19bdbdf760033803c0c7ca24acf2591ba425633f7e3315790a'
'9b6dc40ad5cfa0f3efd14f917d4d239775391af1071ca24857dff5a71e4743d2')
package() {
install -Dm644 "$srcdir/opt/${_pkgname^}/resources/app.asar" "$pkgdir/usr/share/$_pkgname/app.asar"
install -d "$pkgdir/usr/bin"
echo "#!/bin/sh
exec electron$_electron_ver /usr/share/$_pkgname/app.asar \"\$@\"" > "$pkgdir/usr/bin/$_pkgname"
chmod 755 "$pkgdir/usr/bin/$_pkgname"
sed -i "s/\/opt\/${_pkgname^}\///" "$srcdir/usr/share/applications/$_pkgname.desktop"
cp -R "$srcdir/usr/share" "$pkgdir/usr/"
install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$_pkgname/LICENSE"
}
|