32 lines
999 B
Bash
32 lines
999 B
Bash
|
# This is an example PKGBUILD file. Use this as a start to creating your own,
|
||
|
# and remove these comments. For more information, see 'man PKGBUILD'.
|
||
|
# NOTE: Please fill out the license field for your package! If it is unknown,
|
||
|
# then please put 'unknown'.
|
||
|
|
||
|
# Maintainer: Future Linux Team <future_linux@163.com>
|
||
|
pkgname=zstd
|
||
|
pkgver=1.5.6
|
||
|
pkgrel=1
|
||
|
pkgdesc="Zstandard - Fast real-time compression algorithm"
|
||
|
arch=('x86_64')
|
||
|
url="https://facebook.github.io/zstd/"
|
||
|
license=('BSD-3-Clause' 'GPL-2.0-only')
|
||
|
depends=('glibc' 'gcc-libs' 'zlib' 'xz' 'lz4')
|
||
|
source=(https://github.com/facebook/zstd/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
|
||
|
sha256sums=(8c29e06cf42aacc1eafc4077ae2ec6c6fcb96a626157e0593d5e82a34fd403c1)
|
||
|
|
||
|
build() {
|
||
|
cd ${pkgname}-${pkgver}
|
||
|
|
||
|
export CFLAGS+=' -ffat-lto-objects'
|
||
|
export CXXFLAGS+=' -ffat-lto-objects'
|
||
|
|
||
|
make CC="${CHOST}-gcc" prefix=/usr libdir=/usr/lib64
|
||
|
}
|
||
|
|
||
|
package() {
|
||
|
cd ${pkgname}-${pkgver}
|
||
|
|
||
|
make DESTDIR=${pkgdir} prefix=/usr libdir=/usr/lib64 install
|
||
|
}
|