diff options
author | Dario | 2021-08-09 16:09:08 +0200 |
---|---|---|
committer | Dario | 2021-08-09 16:09:08 +0200 |
commit | ffe921be96dca24840d0bcca42d55822e4516128 (patch) | |
tree | 7c5251a68952aec5cd55152d70bc1b9d4accb99a | |
parent | 4f91c29153b5ae8025878b4febb2813d8c05291c (diff) | |
download | aur-ffe921be96dca24840d0bcca42d55822e4516128.tar.gz |
introduce a check function for version mismatch
-rw-r--r-- | PKGBUILD | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -23,9 +23,21 @@ prepare() { ./${_CLIENT} --appimage-extract 2> /dev/null } +check() { + MATCH=$(cat ${srcdir}/squashfs-root/gopanda2.desktop | grep X-AppImage-Version=$pkgver || [[ $? == 1 ]]) + if [[ -z ${MATCH} ]]; then + echo "Version check failed! A newer version has been released, but the + PKGBUILD has not yet been updated. Change the pkgver and checksums in + the PKGUILB yourself and/or leave a comment at + https://aur.archlinux.org/packages/gopanda/ so that the PKGBUILD will be + updated."; + exit 1; + fi +} + package() { - # Copy license + # Copy license install -Dm644 "${srcdir}/squashfs-root/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" cd "$srcdir/" |