summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8a99bf14414d38318b1ec1c7c0e3548b7758f064 (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: BenoƮt Allard <benoit.allard@gnx.de>
pkgname=python-file-read-backwards
pkgver=2.0.0
pkgrel=1
pkgdesc="Memory efficient way of reading files line-by-line from the end of file"
arch=('any')
url="https://github.com/RobinNil/file_read_backwards"
license=('MIT')
depends=("python")
_name=${pkgname#python-}
source=("$pkgname-$pkgver.tar.gz::https://github.com/RobinNil/${_name//-/_}/archive/v$pkgver.tar.gz")
md5sums=('38ee664ca2083ecf59fd09f4211c5406')

build() {
    cd ${_name//-/_}-$pkgver
    export PYTHONSEED=1
    python setup.py build
}

package() {
    cd ${_name//-/_}-$pkgver
    python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}