-
Notifications
You must be signed in to change notification settings - Fork 19
/
PKGBUILD
48 lines (43 loc) · 971 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
41
42
43
44
45
46
47
48
#Maintainer: Ujjwal R. <ujjwal.raj.5798@gmail.com>
pkgname='dree-git'
_pkgname='Dree'
pkgver=v2.0.0.r13.g49a8e4a
pkgrel=1
pkgdesc="One single package for visualization, debugging, and exploration of folder hierarchies"
arch=('x86_64')
url="https://github.com/ujjwall-R/Dree.git"
license=('GPL')
groups=()
depends=()
makedepends=('git')
checkdepends=()
optdepends=()
provides=(dree)
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("git+$url")
noextract=()
md5sums=('SKIP')
pkgver() {
cd "$_pkgname"
git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "$_pkgname"
if [ ! -d "compile" ]; then mkdir compile; fi && make clean
}
build() {
cd "$_pkgname"
make all
}
package() {
cd "$_pkgname"
location=$(readlink -f dree.sh)
cd ../..
echo "Add the following line into .bashrc or .zshrc (whichever you use)" > post_install
echo "alias=$location" >> post_install
}