File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -18,3 +18,4 @@ sed -i "5c\\$changelog_line2" linuxtoys-${lt_version}/debian/changelog
1818# build package
1919cd linuxtoys-${lt_version} || echo " fatal error 3" && sleep 3 && exit 3
2020debuild -us -uc # this builder script requires devscripts!!
21+ echo " All done" && sleep 3 && exit 0
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ # ask version to package
3+ read -p " Version number: " lt_version
4+ # use deb tarball for directory structure -- it does require having built the deb package first!
5+ cp ../deb/linuxtoys_${lt_version} .orig.tar.xz .
6+ mv linuxtoys_${lt_version} .orig.tar.xz linuxtoys-${lt_version} .tar.xz
7+ # update version and hash on PKGBUILD file
8+ hash=$( sha256sum linuxtoys-${lt_version} .tar.xz | cut -d' ' -f1)
9+ sed -i " s/pkgver='[^']*'/pkgver='$lt_version '/" PKGBUILD
10+ sed -i " s/sha256sums=('[^']*')/sha256sums=('$hash ')/" PKGBUILD
11+ echo " All done" && sleep 3 && exit 0
You can’t perform that action at this time.
0 commit comments