blob: c4ad351e83a577d8407ed8938114ca289ecb69fb (
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
|
# Maintainer: Patrick McCarty <pnorcks at gmail dot com>
pkgname=bmap-tools
pkgver=3.2
_relcommit=96702a869220ab20830db916ec4ac595e1d97f92
pkgrel=1
pkgdesc="Tool optimized for copying largely sparse files using information from a block map (bmap) file"
arch=(any)
url="http://git.infradead.org/users/dedekind/bmap-tools.git"
license=('GPL2')
depends=('python2')
makedepends=('git' 'python2-setuptools')
source=(git://git.infradead.org/users/dedekind/bmap-tools.git)
sha256sums=('SKIP')
pkgver() {
cd bmap-tools/
git checkout $_relcommit
awk '/^VERSION =/ { print $3 }' bmaptool | sed 's/"\(.*\)"/\1/'
}
build() {
cd bmap-tools/
git checkout $_relcommit
python2 setup.py build
}
package() {
cd bmap-tools/
python2 setup.py install --root=$pkgdir/ --optimize=1
install -Dm644 docs/man1/bmaptool.1 "$pkgdir"/usr/share/man/man1/bmaptool.1
}
# vim:set ts=2 sw=2 et:
|