Browse Source

add: pygtfs

master
chimo 2 years ago
parent
commit
b40d341b71
1 changed files with 41 additions and 0 deletions
  1. +41
    -0
      pygtfs/APKBUILD

+ 41
- 0
pygtfs/APKBUILD View File

@ -0,0 +1,41 @@
# Maintainer: Chimo <chimo@chromic.org>
pkgname="pygtfs"
pkgver=0.0.1
_pkgver="7db3911010306adf862efbeeec47fcef99b015c8"
pkgrel=0
pkgdesc="A python (2/3) library for GTFS"
url="https://github.com/jarondl/pygtfs"
arch="noarch"
license="MIT"
depends="
python3
py3-docopt
py3-psycopg2
py3-six
py3-sqlalchemy
py3-tz
"
makedepends=""
subpackages=""
ioptions="!check"
_giturl="https://github.com/jarondl/pygtfs.git"
builddir="$srcdir/$pkgname"
prepare() {
default_prepare
git clone "${_giturl}" "${srcdir}/${pkgname}" || return 1
cd "${srcdir}/${pkgname}"
git checkout "${_pkgver}" || return 1
}
build() {
cd "$builddir"
python3 setup.py build
}
package() {
cd "$builddir"
python3 setup.py install --root="$pkgdir" --prefix=/usr --optimize=1
}

Loading…
Cancel
Save