diff options
-rw-r--r-- | main/py-pillow/APKBUILD | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/main/py-pillow/APKBUILD b/main/py-pillow/APKBUILD index fcbfdb923e..a6f65a4ed7 100644 --- a/main/py-pillow/APKBUILD +++ b/main/py-pillow/APKBUILD @@ -11,7 +11,7 @@ license="PSF" depends="" makedepends="python2-dev python3-dev py-setuptools freetype-dev jpeg-dev libwebp-dev tiff-dev libpng-dev lcms2-dev openjpeg-dev zlib-dev" -subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" +subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3 $pkgname-doc::noarch" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" @@ -43,7 +43,19 @@ _py() { install_if="$pkgname=$pkgver-r$pkgrel $python" cd "$builddir" - $python setup.py install --prefix=/usr --root="$subpkgdir" + $python setup.py install --prefix=/usr --root="$subpkgdir" || return 1 + + # The scripts are packages in -doc, they should not be here. + rm -r "$subpkgdir"/usr/bin +} + +doc() { + pkgdesc="$pkgdesc (documentation)" + local destdir="$subpkgdir/usr/share/doc/$pkgname" + + cd "$builddir" + install -d "$destdir"/Scripts + install -m 644 Scripts/* "$destdir"/Scripts/ } md5sums="09ebb92ec5cbba13ff1acf139caf6b66 Pillow-3.4.2.tar.gz" |