aboutsummaryrefslogtreecommitdiffstats
path: root/main/lz4/APKBUILD
blob: bad9e7e89d10fa42ed31a09e9f0fe14eb57e1e9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=lz4
pkgver=131
_pkgver=r${pkgver}
pkgrel=0
pkgdesc="LZ4 is lossless compression algorithm with fast decoder @ multiple GB/s per core."
url="http://www.lz4.info"
arch="all"
license="BSD / GPLv2"
depends_dev=""
makedepends="$depends_dev"
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$_pkgver.tar.gz::https://github.com/Cyan4973/lz4/archive/$_pkgver.tar.gz"

_builddir="$srcdir"/$pkgname-$_pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
        export PREFIX="/usr"
        make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="42b09fab42331da9d3fb33bd5c560de9  lz4-r131.tar.gz"
sha256sums="9d4d00614d6b9dec3114b33d1224b6262b99ace24434c53487a0c8fd0b18cfed  lz4-r131.tar.gz"
sha512sums="60bd95d529691ffee2c43f0d8a62484c3cff74c0154094f073192606806ac8182dced61e0534ffa7e0ccf5f18e9a8cfd2738883a83814c0711a6d7f1d1b252e5  lz4-r131.tar.gz"