aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-osourcer/APKBUILD
blob: b4996c74ad62ef1e721c7795ee38d29dd48f86a7 (plain) (blame)
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
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-osourcer
_pkgname=osourcer
pkgver=0.1
pkgrel=0
pkgdesc="Tool to manage licenses in source code"
url="http://github.com/dnarvaez/osourcer"
arch="noarch"
license="ASL 2.0"
depends="python2"
depends_dev=""
makedepends="python2-dev py-setuptools"
install=""
subpackages=""
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"

_builddir="$srcdir"/$_pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	python2 setup.py build || return 1
}

package() {
	cd "$_builddir"
	python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

md5sums="587766a048f72838558d5b3aa351f525  osourcer-0.1.tar.gz"
sha256sums="bf754d6c8dd4ecb5091ab2a461223b97bdf01757ece8cc1095d22c9129e8dde0  osourcer-0.1.tar.gz"
sha512sums="20726cca90bb7b3854595b8f1e42ea4d9da25a5a07562c1ced3d08bf58d884b9aa76b8b1c5b98be1b0b50317d004c2f78f0e60c5984c2100fa503a0b660fd4dd  osourcer-0.1.tar.gz"