APKBUILD 847 Bytes
Newer Older
1
# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to>
2
# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
ScrumpyJack's avatar
ScrumpyJack committed
3
pkgname=lzip
4
pkgver=1.21
5
pkgrel=0
ScrumpyJack's avatar
ScrumpyJack committed
6
pkgdesc="Lzip is a lossless data compressor"
7
url="http://www.nongnu.org/lzip/lzip.html"
ScrumpyJack's avatar
ScrumpyJack committed
8
arch="all"
9
license="GPL-2.0-or-later"
10
subpackages="$pkgname-doc"
11
source="https://download.savannah.gnu.org/releases/$pkgname/$pkgname-$pkgver.tar.gz"
12
builddir="$srcdir/$pkgname-$pkgver"
ScrumpyJack's avatar
ScrumpyJack committed
13 14

build() {
15
	cd "$builddir"
16
	./configure \
17 18 19 20 21
		--prefix=/usr \
		CXX="${CXX-g++}" \
		CPPFLAGS="${CPPFLAGS}" \
		CXXFLAGS="${CXXFLAGS}" \
		LDFLAGS="${LDFLAGS}"
22 23 24 25 26 27
        make
}

check() {
	cd "$builddir"
	make check
ScrumpyJack's avatar
ScrumpyJack committed
28 29 30
}

package() {
31 32
	cd "$builddir"
	make DESTDIR=$pkgdir install
ScrumpyJack's avatar
ScrumpyJack committed
33 34
}

35
sha512sums="02e31a8fc9431e88edbb0fd467e9dd0947203e693e6581be1a8d25d96c74d9c3794f1fef9e4c993553ba74330c8f5851cad6315b49f263fe9cf2444225af4362  lzip-1.21.tar.gz"