blob: 55c10fba65bf659a5a4bac68bb52e65ad77fef70 (
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
|
# Maintainer: WitheringAway <124115470+notwithering@users.noreply.github.com>
pkgname=vencord-hook
pkgver=1
pkgrel=9
pkgdesc="Pacman hook to automatically install Vencord after Discord updates"
arch=('any')
url="https://github.com/Vencord/Installer.git"
license=('GPL3' 'MIT')
depends=('bash' 'coreutils' 'curl' 'sed')
source=("vencord.hook"
"vencord.sh"
"LICENSE-VENCORD"
"LICENSE-VENCORD-HOOK")
sha256sums=('d49f2f716890e21828162cf3f75ae0b691e5d91c669e8419419acbbbd4816230'
'cf316c7df3679829c3f63d3c89692af1d07e4a04d616aea7931725e0411c8671'
'SKIP'
'SKIP')
package() {
install -Dm644 "$srcdir/vencord.hook" "${pkgdir}/etc/pacman.d/hooks/vencord.hook"
install -Dm755 "$srcdir/vencord.sh" "${pkgdir}/etc/pacman.d/hookbin/vencord.sh"
install -Dm644 "$srcdir/LICENSE-VENCORD-HOOK" "$pkgdir/usr/share/licenses/$pkgname/LICENSE-VENCORD-HOOK"
install -Dm644 "$srcdir/LICENSE-VENCORD" "$pkgdir/usr/share/licenses/$pkgname/LICENSE-VENCORD"
}
post_remove() {
if [[ -f /etc/pacman.d/hookbin/vencord.sh ]]; then
rm /etc/pacman.d/hookbin/vencord.sh
fi
rmdir /etc/pacman.d/hookbin 2>/dev/null || true
if [[ -f /etc/pacman.d/hooks/vencord.hook ]]; then
rm /etc/pacman.d/hooks/vencord.hook
fi
rm -f "$pkgdir/usr/share/licenses/$pkgname/LICENSE-VENCORD-HOOK"
rm -f "$pkgdir/usr/share/licenses/$pkgname/LICENSE-VENCORD"
rmdir "$pkgdir/usr/share/licenses/$pkgname" 2>/dev/null || true
}
|