racket: add -doc subpackage

This commit is contained in:
Andrew Benson 2018-03-29 08:29:46 -05:00 committed by Enno Boland
parent 593882a418
commit 10bd9810b7
2 changed files with 10 additions and 1 deletions

1
srcpkgs/racket-doc Symbolic link
View File

@ -0,0 +1 @@
racket

View File

@ -14,7 +14,6 @@ homepage="http://racket-lang.org/"
distfiles="http://mirror.racket-lang.org/installers/$version/$pkgname-$version-src.tgz" distfiles="http://mirror.racket-lang.org/installers/$version/$pkgname-$version-src.tgz"
checksum=655e052847c53e7c64ab9ad2247860c7b9abe2c4b0966474f0375127fff58c33 checksum=655e052847c53e7c64ab9ad2247860c7b9abe2c4b0966474f0375127fff58c33
nostrip=yes nostrip=yes
configure_args="--disable-docs"
only_for_archs="i686 x86_64 armv5tel armv6l armv7l aarch64" only_for_archs="i686 x86_64 armv5tel armv6l armv7l aarch64"
if [ "$CROSS_BUILD" ]; then if [ "$CROSS_BUILD" ]; then
@ -25,3 +24,12 @@ fi
post_install() { post_install() {
vlicense COPYING-libscheme.txt vlicense COPYING-libscheme.txt
} }
racket-doc_package() {
noarch=yes
short_desc+=" -- documentation"
depends="racket>=${version}_${revision}"
pkg_install() {
vmove usr/share/doc/racket
}
}