summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c6793f5497c2c43477562b3ed0e5636c153a5b56 (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
# Contributor: Thomas Fanninger <thomas@fanninger.at>
_base=e4u
pkgname=python-${_base}
pkgver=0.1rc5
pkgrel=1
epoch=1
pkgdesc="Bundle Library of emoji4unicode at Google"
arch=('any')
url="https://github.com/lambdalisue/${_base}"
license=('custom')
depends=(python-utils python-beautifulsoup4)
makedepends=(python-setuptools)
# options=('!strip' '!emptydirs')
source=(${url}/archive/${pkgver}.tar.gz)
sha512sums=('SKIP')

build() {
  cd "${_base}-${pkgver}"
  python setup.py build
}

package() {
  cd "${_base}-${pkgver}"
  export PYTHONHASHSEED=0
  PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}