summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9c99f6008992fe7773cbdc905836814e94a70d20 (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
# Maintainer: Tim Savannah <kata198@gmail.com>

# Just the python2 libs for PopLines.
# The bins are part of "poplines"
#   and depend on python-poplines (python3 libs)

pkgname='python2-poplines'
_realName=popLines
pkgver=2.1.1
pkgrel=2
pkgdesc="Tools to pop/peek lines from the head/tail or known position within a given file, and output to stdout. Makes files into queues!"
arch=('any')
license=('GPLv2')
url="http://github.com/kata198/popLines"
makedepends=('python2-setuptools' 'python2')
depends=('python2-setuptools' 'python2')
source=("https://github.com/kata198/popLines/archive/${pkgver}.tar.gz")
sha512sums=("c1d528760681132a7f9d8221e7b591d0f61d0ab1b550586712584fa1da5f11873c82fc0c38ebbd561014a980e7d11e760dbd3bb9a1a883485182561068bf03e6")

build() {
  cd "$srcdir/${_realName}-$pkgver"
  python2 setup.py build
}

package() {
  cd "${_realName}-$pkgver"
  python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build

  # Remove executables, they come with the "poplines" package (and depend on py3)
  rm -Rf "${pkgdir}/usr/bin"
}