blob: bd4c0f5e3826d0841b04c90454167a6c77d64f11 (
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
43
44
45
46
47
48
49
50
51
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
}
|