diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2022-10-28 01:38:39 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2022-10-28 01:38:39 +0200 |
commit | ddc027255b1bafb5c0544a60947b7c448140e384 (patch) | |
tree | 37e8b384eadf2f7f32e478ca41f10d3610b7aedd /arch/tde-deps/pod2man/update.sh | |
parent | a5c233945a54cedfcaf97a8d839b09a68b228e85 (diff) | |
download | tde-packaging-ddc027255b1bafb5c0544a60947b7c448140e384.tar.gz tde-packaging-ddc027255b1bafb5c0544a60947b7c448140e384.zip |
ArchLinux: Update for final R14.0.13.
Add aarch64 and armv7h to architectures.
Add pkgbuilds for several applications.
Add pkgbuild for libkipi library.
Add pkgbuilds for dependencies.
Remove dependence on Python 2.
Remove backported patches.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'arch/tde-deps/pod2man/update.sh')
-rwxr-xr-x | arch/tde-deps/pod2man/update.sh | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/arch/tde-deps/pod2man/update.sh b/arch/tde-deps/pod2man/update.sh new file mode 100755 index 000000000..b176cad88 --- /dev/null +++ b/arch/tde-deps/pod2man/update.sh @@ -0,0 +1,29 @@ +#!/usr/bin/env bash + +get_latest() { + wget -q -O- 'https://github.com/kimwalisch/primesieve/wiki/Downloads' | \ + sed -n 's,.*primesieve-\([0-9][^>]*\)\.tar.*,\1,p' | \ + grep -v '\(linux\|mac\|win\)' | \ + sort -r | \ + head -1 +} + +latest_version=$1 +#latest_version=$(get_latest) +current_version=$(cat PKGBUILD | grep pkgver= | awk -F'=' '{print $2}') + +if ! [ "$latest_version" = "$current_version" ]; then + echo Updating the package with the latest version + echo latest: $latest_version + echo current: $current_version + sed -i.bak "s/$current_version/$latest_version/g" PKGBUILD + sed -i.bak "s/pkgrel=[^d.]/pkgrel=1/g" PKGBUILD + ./pkgsum.sh + if which makepkg &> /dev/null; then + makepkg --printsrcinfo > .SRCINFO + else + mksrcinfo + fi +else + echo Nothing to update. +fi |