blob: 09925f4d245d5e5f4585d01a53774d596b226c59 (
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
|
# Maintainer: Simon Schubert <2-aur@0x2c.org>
pkgname=sparse-fio-git
pkgver=r34.7710f44
pkgrel=1
pkgdesc="Tool to work with sparse files like hard disk images"
arch=('i686' 'x86_64')
url="https://github.com/anyc/sparse-fio"
license=('GPL')
depends=("util-linux-libs")
makedepends=('git')
source=(${pkgname}::"git+https://github.com/anyc/sparse-fio.git")
sha256sums=('SKIP')
pkgver() {
cd "${pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "${srcdir}/${pkgname}"
make BUILD_SINGLE_EXECUTABLE=0
}
check() {
cd "${srcdir}/${pkgname}"
LD_LIBRARY_PATH=. ./tests.sh
}
package() {
cd "${srcdir}/${pkgname}"
make DESTDIR="${pkgdir}" install
}
|