blob: 986281793673149e8d06426ec625ca347b7f4509 (
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
|
# Contributor: 3ED <krzysztof1987__at__gmail__dot__com>
pkgname=pydefrag-bzr
_bzrmod=pfbh
pkgver=122
pkgrel=4
pkgdesc="The defragmenter is written using a simple combination of filefrag (a readily available fragmentation checker for Linux) and atomic copy. Inspired by Gentoo's fragcheck.pl and Con Kolivas's defrag script. (pfbh branch)"
arch=('any')
url="https://code.launchpad.net/~brywilharris/pyfragtools/pfbh"
license=('GPL')
makedepends=('bzr')
depends=('python2' 'rsync')
optdepends=("psyco27-svn: JIT compiler for Python 2.7 (development version)")
source=("bzr+http://bazaar.launchpad.net/~brywilharris/pyfragtools/pfbh/")
md5sums=('SKIP')
pkgver() {
cd $_bzrmod
bzr revno
}
prepare() {
cd $_bzrmod
# in that way because this is bzr... :[
if head -n1 pydefrag|grep -q 'python$'; then
sed 's:python$:python2:' -i pydefrag
fi
}
check() {
cd $_bzrmod
echo TEST: died here or script interpreter is correctly set to python2..
head -n1 pydefrag|grep -q 'python2$'
}
package() {
cd $_bzrmod
install -dm755 "${pkgdir}"/usr/bin
install -m 755 pydefrag "${pkgdir}"/usr/bin/pydefrag
}
|