summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 44a450ac0243fd0d8363a649ae56e6acd0ff2446 (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
# Maintainer:  Caleb Maclennan <caleb@alerque.com>
# Contributor: Anselmo L. S. Melo <anselmo.melo@intel.com>

_pypiname=defcon
pkgname=python-$_pypiname-git
pkgver=0.6.0.r63.g71f1cd9
epoch=1
pkgrel=1
pkgdesc='A set of UFO based objects for use in font editing applications'
arch=('any')
url="https://github.com/robotools/$_pypiname"
license=('MIT')
makedepends=('git' 'python-setuptools')
source=("git://github.com/robotools/$_pypiname.git")
sha256sums=('SKIP')

package() {
  cd "$_pypiname"
  python3 setup.py install --root="$pkgdir/" --optimize=1
}

pkgver() {
  cd "$_pypiname"
  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}