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