pkg-pil-squasher/PKGBUILD

33 lines
727 B
Bash
Raw Normal View History

2023-12-14 15:14:38 +08:00
# Maintainer: Egor Vorontsov <sdoregor@sdore.me>
# Maintainer: BigfootACA <bigfoot@classfun.cn>
pkgname=pil-squasher
pkgver=r9.8ac2d5c
pkgrel=1
pkgdesc="Convert split mdt + b%02d files into mbn file"
2024-04-30 02:28:11 +08:00
arch=("aarch64" "x86_64")
url="https://gitea.classfun.cn:4443/mirrors/pil-squasher"
2023-12-14 15:14:38 +08:00
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
}