Skip to content

Commit 7768c08

Browse files
committed
arch package builder script
1 parent e7a61a8 commit 7768c08

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/buildfiles/deb/builddeb.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ sed -i "5c\\$changelog_line2" linuxtoys-${lt_version}/debian/changelog
1818
# build package
1919
cd linuxtoys-${lt_version} || echo "fatal error 3" && sleep 3 && exit 3
2020
debuild -us -uc # this builder script requires devscripts!!
21+
echo "All done" && sleep 3 && exit 0
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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

0 commit comments

Comments
 (0)