# Maintainer: Egor Vorontsov # Maintainer: BigfootACA pkgname=pil-squasher pkgver=r9.8ac2d5c pkgrel=1 pkgdesc="Convert split mdt + b%02d files into mbn file" arch=("aarch64" "x86_64") url="https://gitea.classfun.cn:4443/mirrors/pil-squasher" depends=(glibc) license=('BSD') source=("git+${url}") sha256sums=('SKIP') pkgver() { cd "${srcdir}/${pkgname}" ( set -o pipefail git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" ) } build() { cd "${srcdir}/${pkgname}" make prefix='/usr' } package() { cd "${srcdir}/${pkgname}" make prefix='/usr' DESTDIR="${pkgdir}" install }