blob: 2886c8c828215ad8f7d4611accb96833a6e42663 (
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
34
35
36
|
# Maintainer: Caleb Maclennan <caleb@alerque.com>
pkgname=sfd2ufo-git
_pkgname=sfdLib
pkgver=1.2.3
pkgrel=1
pkgdesc='An SFD to UFO converter providing sdflib'
arch=(any)
url="https://github.com/aliftype/$_pkgname"
license=(BSD)
depends=(python
python-ufolib2
python-fonttools)
makedepends=(git
python-setuptools)
provides=("${pkgname%-git}" python-sfdlib)
conflicts=("${pkgname%-git}")
options=(!emptydirs)
source=("git+$url.git")
sha256sums=('SKIP')
pkgver() {
cd "$_pkgname"
git describe --tags --abbrev=7 --match="v*" 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
}
|