autoinstall our key
This commit is contained in:
1
PKGBUILD
1
PKGBUILD
@@ -3,6 +3,7 @@ pkgver=20250525
|
||||
pkgrel=1
|
||||
pkgdesc='darkline.cc repo keyring'
|
||||
arch=('any')
|
||||
license=('GPL-3.0-or-later')
|
||||
url='https://darkline.cc/termux'
|
||||
install="${pkgname}.install"
|
||||
depends=('pacman')
|
||||
|
||||
19
darkline-keyring.install
Normal file
19
darkline-keyring.install
Normal file
@@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
|
||||
populate_darkine() {
|
||||
if /data/data/com.termux/files/usr/bin/pacman-key -l >/dev/null 2>&1; then
|
||||
/data/data/com.termux/files/usr/bin/pacman-key --populate darkine
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
post_upgrade() {
|
||||
populate_darkine
|
||||
}
|
||||
|
||||
post_install() {
|
||||
if [ -x /data/data/com.termux/files/usr/bin/pacman-key ]; then
|
||||
populate_darkine
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user