summaryrefslogtreecommitdiff
path: root/pcr/python2-pyicu/PKGBUILD
blob: bb3170db9b9d8046280a4adba19d9e3046223616 (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
# Maintainer (Arch): Jonathan Liu <net147@gmail.com>
pkgname=python2-pyicu
_realpkgname=PyICU
pkgver=1.7
pkgrel=1
pkgdesc="Python binding for ICU"
arch=('i686' 'x86_64')
url="http://pyicu.osafoundation.org/"
license=('custom')
depends=('python2' 'icu')
source=("http://pypi.python.org/packages/source/P/${_realpkgname}/${_realpkgname}-${pkgver}.tar.gz")
md5sums=('f247fcaccdf601121a2eb81b391ba939')

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

package() {
  cd "${srcdir}/${_realpkgname}-${pkgver}"
  python2 setup.py install --root "${pkgdir}" -O1
  install -d -m755 "${pkgdir}/usr/share/licenses/${pkgname}"
  install -D -m644 "${srcdir}/${_realpkgname}-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

# vim:set ts=2 sw=2 et: