summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 32d4be433b0d04d8c5f1ee7cf8bab39fb3f95ad5 (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=python-genanki-git
pkgver=0.4.0
pkgrel=1
pkgdesc='Generate Anki decks programmatically'
arch=(x86_64 i686)
url='http://github.com/kerrickstaley/genanki'
license=('MIT')
depends=('python' 'python-cached-property' 'python-frozendict' 'python-pystache' 'python-yaml' 'python-setuptools')
provides=('genanki')
source=()
md5sums=()

_proj=https://github.com/kerrickstaley/genanki.git
_name=genanki

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 
}