blob: b60f07c8df53e73cc65b34142a902b315563414a (
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
37
38
39
|
# Maintainer: Peter Bui <pnutzh4x0r@gmail.com>
pkgname=py-gflags
pkgver=2.0
pkgrel=0
pkgdesc="Commandline flags module for Python"
url="http://code.google.com/p/python-gflags"
arch="noarch"
license="BSD"
depends="python2"
depends_dev=""
makedepends="python2-dev py-setuptools"
install=""
subpackages=""
source="http://python-gflags.googlecode.com/files/python-gflags-${pkgver}.tar.gz"
_builddir="$srcdir"/python-gflags-$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="c3ab70218dbf945cc32c0cd64c51d162 python-gflags-2.0.tar.gz"
sha256sums="311066217acb8cd8519a4c872cb3fe64f02bcf105802bb761ab0de55c2386cd6 python-gflags-2.0.tar.gz"
sha512sums="28566acffd092f09105f3b9ad3be4ada11f024f940914e6efb103907f3779283c63bdfe13edad83aa470c5e887b49ad8b05031fc1895f3bad9b5d9c368bbfe18 python-gflags-2.0.tar.gz"
|