forked from Plemya-x/alr-repo
alr переименование
This commit is contained in:
47
vesktop/alr.sh
Normal file
47
vesktop/alr.sh
Normal file
@ -0,0 +1,47 @@
|
||||
name='vesktop'
|
||||
version='1.5.2'
|
||||
release='1'
|
||||
desc='Vesktop gives you the performance of web Discord and the comfort of Discord Desktop'
|
||||
homepage='https://github.com/Vencord/Vesktop'
|
||||
maintainer="Евгений Храмов <xpamych@yandex.ru>"
|
||||
architectures=('amd64')
|
||||
license=('GPL3')
|
||||
provides=('vencord')
|
||||
conflicts=('vencord')
|
||||
|
||||
deps=('electron')
|
||||
build_deps=('pnpm' 'git' 'electron')
|
||||
|
||||
opt_deps=(
|
||||
'libnotify: Notifications'
|
||||
'xdg-utils: Open links, files, etc'
|
||||
'xdg-desktop-portal: Screensharing with Wayland'
|
||||
'arrpc: Rich presence support'
|
||||
)
|
||||
|
||||
sources=("https://github.com/Vencord/Vesktop/archive/refs/tags/v${version}.tar.gz")
|
||||
checksums=('SKIP')
|
||||
|
||||
prepare() {
|
||||
cd ${srcdir}/Vesktop-${version}
|
||||
sed -i '/linux/s/^/ "electronDist": "\/usr\/lib\/electron",\n/' "${srcdir}/Vesktop-${version}/package.json"
|
||||
}
|
||||
|
||||
build() {
|
||||
cd ${srcdir}/Vesktop-${version}
|
||||
pnpm install
|
||||
pnpm package:dir
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}"
|
||||
install -d "${pkgdir}/usr/lib/${name}"
|
||||
install -d "${pkgdir}/usr/bin"
|
||||
|
||||
cp "Vesktop-${version}/dist/linux-unpacked/resources/app.asar" "${pkgdir}/usr/lib/${name}/"
|
||||
install -Dm755 "${scriptdir}/vesktop.sh" "$pkgdir/usr/bin/vesktop"
|
||||
|
||||
install -Dm 644 "${scriptdir}/vesktop.desktop" "${pkgdir}/usr/share/applications/vesktop.desktop"
|
||||
install -Dm 644 "Vesktop-${version}/static/icon.png" "${pkgdir}/usr/share/pixmaps/${name}.png"
|
||||
install -Dm 644 "Vesktop-${version}/LICENSE" "${pkgdir}/usr/share/licenses/${name}/LICENSE"
|
||||
}
|
Reference in New Issue
Block a user