did a thing!

main
Matt C 2 years ago
parent e49d59e901
commit 2af3db067d

@ -0,0 +1,20 @@
# Crystal Maintainer: echo -n 'bWF0dEBnZXRjcnlzdC5hbA==' | base64 --decode
pkgname=pkg_warner
pkgver=1.0
pkgrel=1
pkgdesc="A helpful script if you use the wrong package manager"
arch=('any')
url="https://github.com/crystal-linux/pkg-warner"
license=('GPL')
provides=($pkgname)
conflicts=($pkgname)
depends=('bash')
source=('warner')
md5sums=('SKIP')
package() {
chmod +x warner
mkdir -p ${pkgdir}/usr/bin
cp warner ${pkgdir}/usr/bin/pkg-warner
ln -s ${pkgdir}/usr/bin/{apt,apt-get,zypper,dnf,eopkg,apk} /usr/bin/pkg-warner
}

@ -0,0 +1,11 @@
#!/usr/bin/env bash
# Source: https://stackoverflow.com/a/36625843
texec=$(echo $0 $*)
if [[ $texec == *"pkg-warner"* ]]; then
echo "This command is meant to be run via symlink"
else
echo "On Crystal, we don't use '$texec', we use 'ame'"
echo "For more specific usage information, see 'ame help'"
fi
Loading…
Cancel
Save