#!/bin/sh version="$(wget -o /dev/null -O- https://github.com/JuanBindez/pytubefix/tags | grep -m 1 toggle-commit-v | sed 's!.*toggle-commit-v!!' | cut -d '"' -f 1)" echo "$version" sed -i "s!pkgver=.*!pkgver=\"$version\"!" PKGBUILD hash="$(makedeb -g 2> /dev/null)" echo "$hash" sed -i "s!b2sums=.*!$hash!" PKGBUILD