summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4dac030784316b80e7dee4e0d70f6b09ef4c1763 (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
# Maintainer: Caleb Maclennan <caleb@alerque.com>

pkgname=fdiff-git
pkgver=2.0.0.r7.g970008d
pkgrel=1
pkgdesc='An OpenType table diff tool for fonts based on the fontTools TTX format'
arch=(any)
url="https://github.com/source-foundry/${pkgname%-git}"
license=('MIT')
depends=('python' 'python-aiodns' 'python-aiofiles' 'python-aiohttp' 'python-fonttools')
makedepends=('git' 'python-setuptools')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$pkgname::git+$url.git")
sha256sums=('SKIP')

pkgver() {
    cd "$pkgname"
    git describe --long --tags --abbrev=7 HEAD |
        sed 's/^v//;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
}