forked from sahib/rmlint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
40 lines (34 loc) · 859 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
40
# Maintainer: SahibBommelig <sahib@online.de>
# rmlint PKBUILD for ArchLinux
pkgname=rmlint-git
pkgver=20120217
pkgrel=1
pkgdesc="Tool to remove duplicates and other lint, being much faster than fdupes"
arch=('i686' 'x86_64')
depends=(glibc)
provides=('rmlint')
conflicts=('rmlint')
makedepends=('git')
license=('GPL3')
url=("https://github.com/sahib/rmlint")
_gitroot="git://github.com/sahib/rmlint.git"
_gitname="rmlint"
build()
{
cd ${srcdir}/
msg "Connecting to the GIT server...."
if [[ -d ${srcdir}/${_gitname} ]] ; then
cd ${_gitname}
git pull origin
msg "Updating existing repo..."
else
git clone --depth=1 ${_gitroot}
fi
msg "GIT checkout done."
cd ${srcdir}/${_gitname}
make || return 1
}
package() {
cd "$srcdir/${_gitname}"
make DESTDIR=$pkgdir install || return 1
}