2017-03-22 12:44:33 +01:00
|
|
|
# Description: D programlama dili başvuru derleyici
|
2016-02-24 01:27:23 +01:00
|
|
|
# URL: http://www.dlang.org
|
2017-01-31 01:37:09 +01:00
|
|
|
# Packager: milisarge
|
2016-02-24 01:27:23 +01:00
|
|
|
# Depends on: unzip
|
2017-01-31 01:37:09 +01:00
|
|
|
|
2016-02-24 01:27:23 +01:00
|
|
|
name=dmd
|
2017-05-11 09:09:27 +02:00
|
|
|
version=2.074.0
|
2016-02-24 01:27:23 +01:00
|
|
|
release=1
|
2017-05-12 07:05:01 +02:00
|
|
|
source=(http://downloads.dlang.org/releases/2017/dmd.$version.linux.tar.xz
|
|
|
|
dmd.conf
|
2017-05-11 09:09:27 +02:00
|
|
|
dmd.desktop
|
2017-05-12 07:05:01 +02:00
|
|
|
dmd.logo_48.png
|
|
|
|
default_ddoc_theme.ddoc)
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
|
|
build(){
|
2017-05-12 07:05:01 +02:00
|
|
|
if [ ! -f $DERLEME_KAYNAKDIZIN/phobos-$version.tar.gz ];then
|
|
|
|
wget https://github.com/dlang/phobos/archive/v$version.tar.gz -O $DERLEME_KAYNAKDIZIN/phobos-$version.tar.gz
|
|
|
|
else
|
|
|
|
bsdtar -xf $DERLEME_KAYNAKDIZIN/phobos-$version.tar.gz -C $SRC/
|
|
|
|
fi
|
|
|
|
if [ ! -f $DERLEME_KAYNAKDIZIN/druntime-$version.tar.gz ];then
|
|
|
|
wget https://github.com/dlang/druntime/archive/v$version.tar.gz -O $DERLEME_KAYNAKDIZIN/druntime-$version.tar.gz
|
|
|
|
else
|
|
|
|
bsdtar -xf $DERLEME_KAYNAKDIZIN/druntime-$version.tar.gz -C $SRC/
|
|
|
|
fi
|
|
|
|
|
|
|
|
cd dmd2/src/dmd
|
|
|
|
mkdir -p res
|
|
|
|
cp $SRC/default_ddoc_theme.ddoc res/
|
|
|
|
echo $version > ../VERSION
|
|
|
|
make -j1 -f posix.mak MODEL=64 RELEASE=1 AUTO_BOOTSTRAP=1
|
|
|
|
|
|
|
|
cd $SRC/druntime-$version
|
|
|
|
|
|
|
|
make -j1 -f posix.mak MODEL=64 DMD=$SRC/dmd2/src/dmd RELEASE=1
|
|
|
|
|
|
|
|
cd $SRC/phobos-$version
|
|
|
|
make -j1 -f posix.mak MODEL=64 DMD=$SRC/dmd2/src/dmd RELEASE=1
|
|
|
|
|
|
|
|
install -m 0755 -D $SRC/dmd2/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/dmd2/docs/man/man1/* $pkgdir/usr/share/man/man1/
|
|
|
|
cp -r $SRC/dmd2/docs/man/man5/* $pkgdir/usr/share/man/man5/
|
|
|
|
|
|
|
|
install -d $PKG/usr/share/d/samples/
|
|
|
|
cp -r $SRC/dmd2/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
|
|
|
|
|
2016-02-24 01:27:23 +01:00
|
|
|
}
|