You are not logged in.

#1 2020-12-01 09:29:59

sharethewisdom
Member
Registered: 2014-09-22
Posts: 60

[solved] Missing custom license directory

# 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

#2 2020-12-01 09:42:48

ayekat
Member
Registered: 2011-01-17
Posts: 1,589

Re: [solved] Missing custom license directory

Your PKGBUILD is installing into /usr/share/license instead of /usr/share/licenses.


pkgshackscfgblag

Offline

#3 2020-12-01 10:06:04

sharethewisdom
Member
Registered: 2014-09-22
Posts: 60

Re: [solved] Missing custom license directory

roll thanks.

Offline

#4 2020-12-01 10:42:45

ayekat
Member
Registered: 2011-01-17
Posts: 1,589

Re: [solved] Missing custom license directory

No problem smile
Please don't forget to mark your thread as solved by prepending [SOLVED] to your initial post's title.


pkgshackscfgblag

Offline

Board footer

Powered by FluxBB