summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: df482c7ba07f65ed89b66925ff3cb51ba951aa39 (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
# Maintainer: Caleb Maclenenan <caleb@alerque.com>
# Contributor: William Turner <willtur.will@gmail.com>

pkgname=python-ufonormalizer-git
_pkgname=ufoNormalizer
pkgver=0.5.3.r0.g783ec14
pkgrel=1
pkgdesc="A tool that will normalize XML and other data inside of a UFO"
url="https://github.com/unified-font-object/$_pkgname"
license=('BSD')
arch=('any')
depends=('python')
provides=("${pkgname%-git}=$pkgver")
conflicts=("${pkgname%-git}")
makedepends=('git' 'python-setuptools-scm')
source=("git+$url.git")
sha256sums=('SKIP')

pkgver() {
  cd "$_pkgname"
  git describe --long --tags --abbrev=7 HEAD |
      sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "$_pkgname"
  python setup.py build
}

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