iglunix/pkgs/zstd/build.sh

25 lines
374 B
Bash
Raw Normal View History

2021-05-02 19:49:36 +00:00
pkgname=zstd
2021-05-21 09:34:44 +00:00
pkgver=1.5.0
2021-05-02 19:49:36 +00:00
fetch() {
2021-05-21 09:34:44 +00:00
curl -L "https://github.com/facebook/zstd/releases/download/v$pkgver/zstd-$pkgver.tar.gz" -o $pkgname-$pkgver.tar.xz
2021-05-02 19:49:36 +00:00
tar -xf $pkgname-$pkgver.tar.xz
}
build() {
cd $pkgname-$pkgver
gmake
}
package() {
cd $pkgname-$pkgver
gmake install PREFIX=/usr DESTDIR=$pkgdir
}
license() {
cd $pkgname-$pkgver
cat LICENSE
# cat COPYING
}