summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c02086828949cb62149283b07224ebf9c2da7e98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer: Max Bruckner
pkgname=ssl-fetch
pkgver=0.4
pkgrel=1
pkgdesc="python-ssl-fetch, a dependency of gentoo-mirrorselect."
arch=('any' )
url="https://github.com/dol-sen/ssl-fetch"
license=('GPL2')
depends=('python' 'python-requests' )
makedepends=('git')
source=("git+https://github.com/dol-sen/$pkgname.git#tag=$pkgver")
md5sums=( SKIP )

build() {
    cd "$srcdir/$pkgname"
    sed -i -e "s/Git/$pkgver/g" sslfetch/__init__.py   #Set correct version number
    python setup.py build
}

package() {
    cd "$srcdir/$pkgname"
    python setup.py install --prefix='/usr/' --root="$pkgdir"
}