fermi-lite: format pkgver

This commit is contained in:
Kuoi 2023-03-12 17:26:18 +08:00 committed by GitHub
parent bd62dc74ad
commit 1837260309
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,7 +13,8 @@ source=("git+${url}.git")
sha256sums=('SKIP')
pkgver() {
git -C ${pkgname} describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
cd "$pkgname"
printf $(TZ=UTC git log --no-walk --pretty="%cd" --decorate=full --date=format-local:%Y.%m.%d | head -n 1)
}
prepare(){
@ -21,6 +22,7 @@ prepare(){
sed -i "s|CFLAGS=|CFLAGS=-fPIC |" Makefile
sed -i "s|^const|extern const|" rle.h
}
build() {
cd "$srcdir/${pkgname}"
make