blob: 3706471580b231c201a7e5afb0ef0595593b3b81 (
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
41
|
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
# Former maintainer: fatalis <fatalis@fatalis.pw>
pkgname=lzbench-git
pkgver=1.8.1.r56.g609d783
pkgrel=1
pkgdesc="An in-memory benchmark of open-source compressors"
arch=('i686' 'x86_64')
url="https://github.com/inikep/lzbench"
license=('GPL3')
depends=('gcc-libs')
makedepends=('git')
provides=("lzbench=$pkgver")
conflicts=('lzbench')
source=("git+https://github.com/inikep/lzbench.git")
sha256sums=('SKIP')
prepare() {
cd "lzbench"
sed -i 's/LDFLAGS += -lrt -static/LDFLAGS += -lrt/' "Makefile"
}
pkgver() {
cd "lzbench"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "lzbench"
make
}
package() {
cd "lzbench"
install -Dm755 "lzbench" -t "$pkgdir/usr/bin"
}
|