summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/skvm-hg/PKGBUILD
diff options
context:
space:
mode:
authorCecil Hugh Watson <knoppmyth@gmail.com>2009-08-22 08:03:45 (GMT)
committerCecil Hugh Watson <knoppmyth@gmail.com>2009-08-22 08:03:45 (GMT)
commit18ae17328b876ce477b2f697c49da16f150f36c6 (patch)
tree42186b1660d7a2e078f6c63e5fc30c01531fd968 /abs/core-testing/skvm-hg/PKGBUILD
parentd02df784ac023ceef4394948111a921c4f860c44 (diff)
downloadlinhes_pkgbuild-18ae17328b876ce477b2f697c49da16f150f36c6.zip
linhes_pkgbuild-18ae17328b876ce477b2f697c49da16f150f36c6.tar.gz
linhes_pkgbuild-18ae17328b876ce477b2f697c49da16f150f36c6.tar.bz2
skvm:initial inclusion. lightweight volume manager.
Diffstat (limited to 'abs/core-testing/skvm-hg/PKGBUILD')
-rw-r--r--abs/core-testing/skvm-hg/PKGBUILD52
1 files changed, 52 insertions, 0 deletions
diff --git a/abs/core-testing/skvm-hg/PKGBUILD b/abs/core-testing/skvm-hg/PKGBUILD
new file mode 100644
index 0000000..bd4c0f5
--- /dev/null
+++ b/abs/core-testing/skvm-hg/PKGBUILD
@@ -0,0 +1,52 @@
+# Contributor: Ondrej Martinak <omartinak@gmail.com>
+
+pkgname=skvm-hg
+pkgver=0.1
+pkgrel=2
+pkgdesc="A lightweight volume manager"
+arch=('i686' 'x86_64')
+url="http://code.suckless.org/hg/skvm"
+license=('MIT')
+depends=('hal' 'dbus')
+makedepends=('mercurial')
+conflicts=('skvm')
+provides=('skvm')
+source=('run' 'finish')
+install=skvm.install
+_hgroot="http://code.suckless.org/hg/skvm"
+_hgname="skvm"
+
+build() {
+ cd ${srcdir}
+
+ msg "Connecting to mercurial server..."
+
+ if [ -d $_hgname ]; then
+ cd $_hgname && hg pull
+ cd ..
+ msg "The local files are updated."
+ else
+ hg clone $_hgroot
+ fi
+
+ msg "Mercurial checkout done or server timeout."
+ msg "Starting make..."
+
+ rm -rf $_hgname-build
+ cp -r $_hgname $_hgname-build
+ cd $_hgname-build
+
+ make || return 1
+
+ mkdir -p ${startdir}/pkg/usr/bin
+ mkdir -p ${startdir}/pkg/etc/rc.d
+ mkdir -p ${startdir}/pkg/usr/local/share/man/man1
+ mkdir -p ${startdir}/pkg/etc/sv/skvm/supervise
+
+ install -m 755 skvm ${startdir}/pkg/usr/bin/skvm
+ install -m 755 init/skvm ${startdir}/pkg/etc/rc.d/skvm
+ sed "s/VERSION/${pkgver}/g" < skvm.1 > ${startdir}/pkg/usr/local/share/man/man1/skvm.1
+ chmod 644 ${startdir}/pkg/usr/local/share/man/man1/skvm.1
+ install -m 755 ${startdir}/src/run ${startdir}/pkg/etc/sv/skvm
+ install -m 755 ${startdir}/src/finish ${startdir}/pkg/etc/sv/skvm
+}