blob: 356f384a6facd378ac1927ab93546f05a8b56b1a (
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
45
46
47
48
49
50
51
52
53
54
|
# Maintainer: <me at auoeke dot net>
_tag=`curl -s https://api.github.com/repos/lapce/lapce/releases/tags/nightly`
_get() {
awk -F '"' /\"$1'":/{print $4}' <<< "$_tag"
}
pkgname=lapce-nightly-bin
pkgver=$(date -d $(_get published_at) +%Y%m%d)
pkgrel=1
pkgdesc='Lightning-fast and powerful code editor'
arch=(x86_64)
url=https://lapce.dev
license=(Apache)
depends=(
expat
fontconfig
freetype2
gcc-libs
gtk3
libxcb
libxkbcommon
openssl-1.1
)
options=('!lto')
source=(
lapce-$pkgver.tar.gz::https://github.com/lapce/lapce/releases/download/nightly/lapce-linux-amd64.tar.gz
https://raw.githubusercontent.com/lapce/lapce/$(_get target_commitish)/extra/{images/logo.png,linux/dev.lapce.lapce.{desktop,metainfo.xml}}
)
sha256sums=(
SKIP
SKIP
SKIP
SKIP
)
prepare() {
sed -i dev.lapce.lapce.desktop \
-e "s/Name=Lapce/Name=Lapce nightly/" \
-e "s/Exec=lapce/Exec=lapce-nightly/"
sed -i 's/dev\.lapce\.lapce/dev.lapce.lapce-nightly/' dev.lapce.lapce.{desktop,metainfo.xml}
}
check() {
Lapce/lapce -V
}
package() {
install -D Lapce/lapce "$pkgdir/usr/bin/lapce-nightly"
install -Dm 644 dev.lapce.lapce.desktop "$pkgdir/usr/share/applications/dev.lapce.lapce-nightly.desktop"
install -Dm 644 dev.lapce.lapce.metainfo.xml "$pkgdir/usr/share/metainfo/dev.lapce.lapce-nightly.metainfo.xml"
install -Dm 644 logo.png "$pkgdir/usr/share/pixmaps/dev.lapce.lapce-nightly.png"
}
|