From 3a7e263768c01f0df8a7b9f3f79230a183344688 Mon Sep 17 00:00:00 2001 From: Matt C Date: Tue, 19 Jul 2022 15:18:22 -0400 Subject: [PATCH] it workie --- .gitignore | 3 +++ PKGBUILD | 2 +- warner.install | 10 ++++++++++ 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 .gitignore create mode 100644 warner.install diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1abde25 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +pkg/ +src/ +*.pkg.tar.* \ No newline at end of file diff --git a/PKGBUILD b/PKGBUILD index c383057..ca82061 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -10,11 +10,11 @@ provides=($pkgname) conflicts=($pkgname) depends=('bash') source=('warner') +install="warner.install" md5sums=('02ce7e9e8c29c3d110ca2280ac1cdfcf') package() { chmod +x warner mkdir -p ${pkgdir}/usr/bin cp warner ${pkgdir}/usr/bin/pkg-warner - ln -s /usr/bin/pkg-warner ${pkgdir}/usr/bin/{apt,apt-get,zypper,dnf,eopkg,apk} } diff --git a/warner.install b/warner.install new file mode 100644 index 0000000..ce04ffd --- /dev/null +++ b/warner.install @@ -0,0 +1,10 @@ +post_install() { + for x in apt apt-get zypper dnf eopkg apk; do + ln -s /usr/bin/pkg-warner /usr/bin/$x + echo "linked to $x" + done +} + +post_upgrade() { + post_install +} \ No newline at end of file