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
|
2024-04-30 02:39:40 +08:00
|
|
|
pkgrel=2
|
2023-12-14 15:14:38 +08:00
|
|
|
pkgdesc="Convert split mdt + b%02d files into mbn file"
|
2024-04-30 02:28:11 +08:00
|
|
|
arch=("aarch64" "x86_64")
|
2024-04-30 02:39:40 +08:00
|
|
|
url="https://github.com/linux-msm/pil-squasher"
|
2023-12-14 15:14:38 +08:00
|
|
|
depends=(glibc)
|
|
|
|
license=('BSD')
|
2024-04-30 02:39:40 +08:00
|
|
|
source=("git+https://gitea.classfun.cn:4443/mirrors/pil-squasher")
|
2023-12-14 15:14:38 +08:00
|
|
|
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
|
|
|
|
}
|