summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 580b9cdfc7019020c7dca0c3ee39ef68dfaf41a3 (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
# Maintainer: Kid <hi at xuann dot wang>

pkgname=replit-desktop-app
pkgver=1.0.5
pkgrel=1
pkgdesc='The collaborative browser based IDE'
arch=(x86_64)
url=https://replit.com/desktop
license=(custom)
depends=(
	electron
)
install=.install

source=(
	replit.deb::https://desktop.replit.com/download/deb
	replit
)
sha256sums=('fdb60274b7b81b465d5e3d2cd6ad028c8f53d0f837745bfd1aaf2b110d7da49f'
            '9392ee9aced0cda3a50e00bc1fe40f75830388143254cbcb42929802b835d277')

package() {
	local usr="$pkgdir/usr"
	local lib="$usr/lib/replit"

	tar xf data.tar.zst -C "$pkgdir"

	find "$lib" -type f ! -name '*.asar' -exec rm {} \;
	rm -d "$lib/locales"
	rm -r "$usr/share/lintian"

	install -D replit -t "$usr/bin"
}