diff options
author | Florian Pritz <bluewind@xinu.at> | 2015-12-05 13:55:15 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2015-12-05 13:55:15 +0100 |
commit | 8d8c5681e39d60ab9c826fc766a5ef0d9ab03916 (patch) | |
tree | 0ccf4e609ea6bd836e6060b5baded21533324e09 /upgpkg | |
parent | 81f0a194c53a5d74b646ac2981e26e3ef2614c84 (diff) | |
download | bin-8d8c5681e39d60ab9c826fc766a5ef0d9ab03916.tar.gz bin-8d8c5681e39d60ab9c826fc766a5ef0d9ab03916.tar.xz |
misc
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'upgpkg')
-rwxr-xr-x | upgpkg | 17 |
1 files changed, 3 insertions, 14 deletions
@@ -99,22 +99,11 @@ scriptlet pre_upgrade if [[ $(vercmp $1 $pkgver) -le 0 ]]; then warn "New version (%s) older or equal to current %s" "$1" "$pkgver" fi - +setconf PKGBUILD pkgver="$_newpkgver" +setconf PKGBUILD pkgrel=1 sed -i "s/pkgver=.*$/pkgver=$_newpkgver/g" PKGBUILD sed -i "s/pkgrel=.*$/pkgrel=1/g" PKGBUILD -makepkg -g || exit 1 -# replace the first checksum line with all checksums, remove all other checksums -# TODO: this doesn't work if there are no checksum lines or if the makepkg call -# inside the awk script doesn't return anything -# original awk by Pierre https://projects.archlinux.de/kde-build.git/tree/common/updpkg -awk <PKGBUILD ' -$0 ~ /^(md5|sha[0-9]+)sums/ { - i = 1; - if(!run==1) {system("makepkg -g 2>/dev/null")}; - run=1; -}; -!i {print}; -$0 ~ /\)/ {i = 0}' | sponge PKGBUILD +updpkgsums makepkg --verifysource -d |