mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
fermi-lite: format pkgver
This commit is contained in:
parent
bd62dc74ad
commit
1837260309
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue