summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f23b09662200c0bd7e50311fe8810035eccd8e3a (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
# Maintainer: Ian Douglas Scott <ian@iandouglasscott.com>
# Contributor: Eli Schwartz <eschwartz@archlinux.org>

pkgname=wikicurses-git
pkgver=1.4.r1.gfc1c793
pkgrel=1
pkgdesc="A simple curses interface for accessing Wikipedia."
arch=('any')
url="https://github.com/ids1024/wikicurses"
license=('MIT')
makedepends=('git')
depends=('python' 'python-setuptools' 'python-urwid' 'python-beautifulsoup4' 'python-lxml')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
backup=('etc/wikicurses.conf')
source=("git+${url}.git")
md5sums=('SKIP')

pkgver () {
  cd "${srcdir}"/${pkgname%-git}

  git describe --long --tags | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
}

build() {
  cd "${srcdir}"/${pkgname%-git}

  python setup.py build
}

package() {
  cd "${srcdir}"/${pkgname%-git}

  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
  install -Dm644 README.md "${pkgdir}"/usr/share/doc/${pkgname}/README.md
  install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}