dmd: fix installation.
This commit is contained in:
parent
d9c0bd6ec9
commit
cd78fdb53c
|
@ -16,8 +16,7 @@ elif [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
|
|||
_archbits=32
|
||||
fi
|
||||
|
||||
disable_debug=yes
|
||||
makedepends="unzip"
|
||||
hostmakedepends="unzip"
|
||||
|
||||
do_build() {
|
||||
cd src
|
||||
|
@ -54,27 +53,26 @@ libphobos_package() {
|
|||
short_desc="The phobos D standard library for DMD"
|
||||
license="Boost License"
|
||||
pkg_install() {
|
||||
vinstall src/druntime/lib/libdruntime-linux${_archbits}.a 644 usr/lib libdruntime.a
|
||||
vinstall src/phobos/generated/linux/release/$_archbits/libphobos2.a 644 usr/lib libphobos2.a
|
||||
vinstall ${wrksrc}/src/druntime/lib/libdruntime-linux${_archbits}.a 644 usr/lib libdruntime.a
|
||||
vinstall ${wrksrc}/src/phobos/generated/linux/release/$_archbits/libphobos2.a 644 usr/lib libphobos2.a
|
||||
|
||||
vmkdir usr/include/d
|
||||
cp -r src/phobos/{*.d,etc,std} ${PKGDESTDIR}/usr/include/d
|
||||
cp -r ${wrksrc}/src/phobos/{*.d,etc,std} ${PKGDESTDIR}/usr/include/d
|
||||
|
||||
vmkdir usr/include/d/druntime
|
||||
cp -r src/druntime/import ${PKGDESTDIR}/usr/include/d/druntime
|
||||
cp -r ${wrksrc}/src/druntime/import ${PKGDESTDIR}/usr/include/d/druntime
|
||||
|
||||
vmkdir usr/share/doc/d/
|
||||
cp -r html ${PKGDESTDIR}/usr/share/doc/d/
|
||||
cp -r ${wrksrc}/html ${PKGDESTDIR}/usr/share/doc/d/
|
||||
find ${PKGDESTDIR}/usr/share/doc/d -type f | xargs chmod 0644
|
||||
|
||||
vinstall src/druntime/LICENSE 644 usr/share/licenses/libphobos
|
||||
vinstall ${wrksrc}/src/druntime/LICENSE 644 usr/share/licenses/libphobos
|
||||
}
|
||||
}
|
||||
|
||||
dmd_package() {
|
||||
depends="libphobos>=${version} gcc"
|
||||
pkg_install() {
|
||||
vmove etc
|
||||
vmove usr
|
||||
vmove all
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue