autoinstall our key

This commit is contained in:
2025-05-25 14:41:53 +03:00
parent 540952bb8c
commit c2156649f6
2 changed files with 20 additions and 0 deletions

View File

@@ -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
View 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
}