summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD42
2 files changed, 58 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..fa3e479d487
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = pydefrag-bzr
+ 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)
+ pkgver = 122
+ pkgrel = 4
+ url = https://code.launchpad.net/~brywilharris/pyfragtools/pfbh
+ arch = any
+ license = GPL
+ makedepends = bzr
+ depends = python2
+ depends = rsync
+ optdepends = psyco27-svn: JIT compiler for Python 2.7 (development version)
+ source = bzr+http://bazaar.launchpad.net/~brywilharris/pyfragtools/pfbh/
+ md5sums = SKIP
+
+pkgname = pydefrag-bzr
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..98628179367
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,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
+}