# Description: D programlama dili başvuru derleyici # URL: http://www.dlang.org # Packager: milisarge # Depends on: unzip name=dmd version=2.072.2 release=1 source=(http://crux.ster.zone/downloads/$name/$name-$version.tar.gz http://crux.ster.zone/downloads/$name/druntime-$version.tar.gz http://crux.ster.zone/downloads/$name/phobos-$version.tar.gz) #source=(https://github.com/dlang/dmd/archive/v$version.tar.gz # https://github.com/dlang/druntime/archive/v$version.tar.gz # https://github.com/dlang/phobos/archive/v$version.tar.gz) build() { ln -s druntime-$version druntime cd dmd-$version/src echo $version > ../VERSION make -f posix.mak MODEL=64 RELEASE=1 AUTO_BOOTSTRAP=1 cd $SRC/druntime-$version make -f posix.mak MODEL=64 DMD=$SRC/dmd-$version/src/dmd RELEASE=1 cd $SRC/phobos-$version make -f posix.mak MODEL=64 DMD=$SRC/dmd-$version/src/dmd RELEASE=1 install -m 0755 -D $SRC/dmd-$version/src/dmd $PKG/usr/bin/dmd install -d $PKG/etc echo -e "[Environment]\nDFLAGS=-I/usr/include/dlang/dmd -L-L/usr/lib -L-L/usr/lib32 -L--export-dynamic" > $PKG/etc/dmd.conf install -d %PKG/usr/share/man/man{1,5} cp -r $SRC/dmd-$version/docs/man/man1/* $pkgdir/usr/share/man/man1/ cp -r $SRC/dmd-$version/docs/man/man5/* $pkgdir/usr/share/man/man5/ install -d $PKG/usr/share/d/samples/ cp -r $SRC/dmd-$version/samples/* $PKG/usr/share/d/samples/ # Phobos standard library install -m 0644 -D $SRC/phobos-$version/generated/linux/release/64/libphobos2.a \ $PKG/usr/lib/libphobos2.a install -d $PKG/usr/include/dlang/dmd cp -r $SRC/phobos-$version/{*.d,etc,std} $PKG/usr/include/dlang/dmd cp -r $SRC/druntime-$version/import/* $PKG/usr/include/dlang/dmd/ install -m 0644 -D $SRC/phobos-$version/generated/linux/release/64/libphobos2.so \ $PKG/usr/lib/libphobos2.so }