You are not logged in.
# Maintainer: Bart De Roy <de.roy.bart@gmail.com>
pkgname=python-svgpathtools-git
pkgver=r179.45dc873
pkgrel=1
pkgdesc="manipulate and analyze SVG Path objects and Bezier curves"
arch=(any)
url="https://github.com/mathandy/svgpathtools"
license=('MIT')
depends=(python-numpy python-svgwrite)
makedepends=(git python-setuptools)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=( "${pkgname%-git}::git+${url}.git")
md5sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/${pkgname%-git}"
python setup.py build
}
package() {
cd "$srcdir/${pkgname%-git}"
python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname%-git}" *.svg
install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname%-git}" README*
# install -Dm644 -t "${pkgdir}/usr/share/license/${pkgname}" LICENSE*
install -Dm644 LICENSE.txt "${pkgdir}/usr/share/license/${pkgname}/LICENSE"
install -Dm644 LICENSE2.txt "${pkgdir}/usr/share/license/${pkgname}/LICENSE2"
}
makepkg -f succeeds, but I keep getting the license directory error: (please ignore the dependency or doc size warnings)
$ namcap python-svgpathtools-git-r179.45dc873-1-any.pkg.tar.zst
python-svgpathtools-git E: Missing custom license directory (usr/share/licenses/python-svgpathtools-git)
python-svgpathtools-git W: Package was 88% docs by size; maybe you should split out a docs package
python-svgpathtools-git W: Dependency included and not needed ('python-numpy')
python-svgpathtools-git W: Dependency included and not needed ('python-svgwrite')
$ ls -lR pkg/python-svgpathtools-git/usr/share/license
pkg/python-svgpathtools-git/usr/share/license:
total 4
drwxr-xr-x 2 bart wheel 4096 Dec 1 10:10 python-svgpathtools-git
pkg/python-svgpathtools-git/usr/share/license/python-svgpathtools-git:
total 8
-rw-r--r-- 1 bart wheel 1083 Dec 1 10:10 LICENSE
-rw-r--r-- 1 bart wheel 1086 Dec 1 10:10 LICENSE2
I've been staring at this all morning. What's wrong?
Last edited by sharethewisdom (2020-12-01 19:47:31)
Offline
thanks.
Offline