pkg-pil-squasher/PKGBUILD
2024-04-30 02:39:40 +08:00

33 lines
762 B
Bash

# Maintainer: Egor Vorontsov <sdoregor@sdore.me>
# Maintainer: BigfootACA <bigfoot@classfun.cn>
pkgname=pil-squasher
pkgver=r9.8ac2d5c
pkgrel=2
pkgdesc="Convert split mdt + b%02d files into mbn file"
arch=("aarch64" "x86_64")
url="https://github.com/linux-msm/pil-squasher"
depends=(glibc)
license=('BSD')
source=("git+https://gitea.classfun.cn:4443/mirrors/pil-squasher")
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
}