summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2fe8e8d2558911739920ad38ab2aa2b85006d3d8 (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
## Maintainer: realasking
pkgname=essential-pathway-git
pkgver=1.0.3
pkgrel=2
pkgdesc='A tool that helps people quickly access to their most commonly used folders in command line in some operation systems like linux,written in python3.'
arch=(x86_64 i686)
url='https://github.com/realasking/essential-pathway'
license=('GPL')
depends=('python' 'env-modules' 'python-prettytable' 'python-setuptools')
provides=('essential-pathway')
source=()
md5sums=()

_proj=https://github.com/realasking/essential-pathway.git 
_name=essential-pathway 

build() {
	cd "$srcdir" 
	msg "Starting Git..."
	if [[ -d "$_proj" ]]; then
	    cd "$_proj" 
	    git pull origin
	else
	    git clone "$_proj" "$_name"
	fi
	msg "Project synchronization Finished."
	msg "Starting build..."
	
	cd "$_name"
	python setup.py build || return 1
}

package() {
	cd "$srcdir/$_name"
	python setup.py install --root="$pkgdir" --optimize=1 || return 1 
}