blob: 5458705850125f7915fc777c952f152a4da4187f (
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
|
# Maintainer: Malte Jürgens <maltejur@dismail.de>
pkgname=revanced-builder
pkgver=3.9.3
pkgrel=1
pkgdesc="A NodeJS ReVanced builder"
arch=("x86_64")
url="https://github.com/reisxd/revanced-builder"
license=("GPL-3.0")
depends=("nodejs" "jdk-openjdk")
makedepends=("npm")
optdepends=(
"android-tools: required only for rooted phones"
"electron: for opening revanced-builder in a seperate window"
)
source=(
"$pkgname-$pkgver.tar.gz::https://github.com/reisxd/revanced-builder/archive/refs/tags/v3.9.3.tar.gz"
"revanced-builder.sh"
"revanced-builder.desktop"
"revanced.png::https://user-images.githubusercontent.com/13122796/178031589-aa43db16-46b0-4b75-bff9-cc889fbfbb40.png"
)
sha256sums=(
"9c9f83dc5a34e70b4b3bbaeaaf4557a59661cbee31ebfee7a59f2457da2ad217"
"SKIP"
"SKIP"
"a619654e2e2d0c017c8a270d0463edf66c1e9d73ab105e52d89434b1356b1f7a"
)
build() {
cd $pkgname-$pkgver
npm i
}
package() {
rm -rf "$pkgdir/opt/$pkgname"
mkdir -p "$pkgdir/opt"
mkdir -p "$pkgdir/usr/bin"
mkdir -p "$pkgdir/usr/share/applications"
mkdir -p "$pkgdir/usr/share/icons/hicolor/64x64/apps"
cp -r "$srcdir/$pkgname-$pkgver" "$pkgdir/opt/$pkgname"
install -Dm755 "$srcdir/revanced-builder.sh" "$pkgdir/usr/bin/revanced-builder"
install -Dm644 "$srcdir/revanced-builder.desktop" "$pkgdir/usr/share/applications"
install -Dm644 "$srcdir/revanced.png" "$pkgdir/usr/share/icons/hicolor/64x64/apps"
}
|