blob: 4e7a4fbd1d6829f367258959247b276dfb594051 (
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
42
43
44
45
46
47
48
49
50
51
52
53
|
# Maintainer: Dan Ziemba <zman0900@gmail.com>
# Contributor: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
# Contributor: Christoph Zeiler <archNOSPAM_at_moonblade.dot.org>
# Contributor: Matt Coffin <mcoffin13 at gmail.com>
pkgname=bzip2-rustify-git
pkgver=r60.25f6f5f
pkgrel=1
pkgdesc="A parallel, SMP-based, bzip2-compatible compression utility (rustify branch)"
arch=('i686' 'x86_64')
url="http://lbzip2.org/"
license=('GPL3')
depends=('glibc')
makedepends=('perl' 'git' 'make' 'autoconf' 'autoconf-archive' 'cargo')
provides=('bzip2')
conflicts=('bzip2')
_gitname="bzip2"
source=($_gitname'::git+https://gitlab.com/federicomenaquintero/bzip2.git#branch=rustify')
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$_gitname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/$_gitname"
if [ ! -x ./configure ]; then
./autogen.sh # Rustify branch doesn't have ./configure committed
fi
./configure --prefix=/usr
make
}
check() {
cd "$srcdir/$_gitname"
pushd bzlib_rust > /dev/null
cargo test --release
popd > /dev/null
# TODO: meson build system has meson test. I need to find out what this is for the autoconf build system
}
package() {
cd "$srcdir/$_gitname"
DESTDIR="$pkgdir" make install
# For some reason, the installer doesn't symlink libbz2.so.1.0
cd "$pkgdir/usr/lib"
if [ ! -e libbz2.so.1.0 ]; then
ln -s libbz2.so.1 libbz2.so.1.0
fi
}
|