blob: 7ac6bf5a119f00ddd1f2dde6f29c4409d41084c4 (
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
55
56
57
58
59
60
61
|
# Maintainer: fnrir <fnr1r0@protonmail.com>
pkgname=vscodium-prod-patcher
pkgver=1.1.0
pkgrel=4
epoch=
pkgdesc="Universal patcher for VSCodium"
arch=(any)
url="https://github.com/fnr1r/$pkgname"
license=('GPL')
groups=()
depends=(
vscodium
pyalpm
python-toml
python-mashumaro python-tomli python-tomli-w
)
makedepends=(
python-build python-installer python-wheel
python-hatchling
)
checkdepends=()
optdepends=(
"python-inquirer: tui configuration"
)
provides=()
conflicts=()
replaces=()
backup=()
options=(!debug)
install=
changelog=
source=(
"git+$url#tag=v$pkgver"
vscodium-prod-patcher.hook.in
)
noextract=()
sha256sums=(
SKIP
69511beee552992451ffe9fdeda4e42fd69729b973410d7eafe6dc05b7485209
)
validpgpkeys=()
build() {
sed -E "s|@PACKAGE_NAME@|$pkgname|" \
< vscodium-prod-patcher.hook.in \
> vscodium-prod-patcher.hook
cd "$pkgname"
python -m build --wheel --no-isolation \
--outdir dist
python -m build --wheel --no-isolation \
--outdir dist \
src/vscodium_prod_patcher_alpm_ini
}
package() {
for wheel in "$pkgname/dist"/*.whl; do
python -m installer --destdir="$pkgdir" "$wheel"
done
install -Dm 644 vscodium-prod-patcher.hook \
"$pkgdir/usr/share/libalpm/hooks/97-vscodium-prod-patcher-self.hook"
}
|