-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPKGBUILD
39 lines (31 loc) · 789 Bytes
/
PKGBUILD
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
# Maintainer: Simon Klee <[email protected]>
pkgname=redoc
pkgver=20120119
pkgrel=2
pkgdesc="redoc - an interface to the Redis documentation"
arch=('i686' 'x86_64')
license=('GPL')
makedepends=('git')
url="http://github.com/simonz05/redoc"
provides=('redoc')
#depends=('go')
_gitroot="git://github.com/simonz05/redoc.git"
_gitname="redoc-git"
build() {
cd $srcdir
msg "Connecting to the GIT server...."
if [[ -d $srcdir/$_gitname ]] ; then
cd $_gitname
git pull origin
msg "The local files are updated."
else
git clone $_gitroot $_gitname
fi
msg "GIT checkout done"
msg "Starting make..."
git clone $srcdir/$_gitname $srcdir/$_gitname-build
cd $srcdir/$_gitname-build
make
make DESTDIR=$pkgdir install
rm -rf $srcdir/$_gitname-build
}