2017-10-27 20:46:27 +02:00
|
|
|
|
# Tanım: D programlama dili başvuru derleyici
|
2016-02-24 01:27:23 +01:00
|
|
|
|
# URL: http://www.dlang.org
|
2017-10-27 20:46:27 +02:00
|
|
|
|
# Paketçi: milisarge
|
|
|
|
|
# Gerekler: unzip
|
2017-01-31 01:37:09 +01:00
|
|
|
|
|
2017-10-28 14:10:23 +02:00
|
|
|
|
isim=dmd
|
2018-01-17 18:49:05 +01:00
|
|
|
|
surum=2.078.0
|
2017-10-28 14:10:23 +02:00
|
|
|
|
devir=1
|
2018-01-17 18:49:05 +01:00
|
|
|
|
#kaynak=(http://crux.ster.zone/downloads/$isim/$isim-$surum.tar.gz
|
|
|
|
|
# http://crux.ster.zone/downloads/$isim/druntime-$surum.tar.gz
|
|
|
|
|
# http://crux.ster.zone/downloads/$isim/phobos-$surum.tar.gz)
|
2017-09-26 10:21:07 +02:00
|
|
|
|
|
2018-01-17 18:49:05 +01:00
|
|
|
|
kaynak=(https://github.com/dlang/dmd/archive/v$surum.tar.gz::$isim-$surum.tar.gz
|
|
|
|
|
https://github.com/dlang/druntime/archive/v$surum.tar.gz::druntime-$surum.tar.gz
|
|
|
|
|
https://github.com/dlang/phobos/archive/v$surum.tar.gz::phobos-$surum.tar.gz)
|
2017-09-26 10:21:07 +02:00
|
|
|
|
|
2017-10-27 23:59:41 +02:00
|
|
|
|
derle() {
|
2018-01-17 18:49:05 +01:00
|
|
|
|
mv dmd-$surum dmd
|
|
|
|
|
mv druntime-$surum druntime
|
|
|
|
|
mv phobos-$surum phobos
|
|
|
|
|
cd "$SRC"/dmd
|
|
|
|
|
make -f posix.mak BUILD=release RELEASE=1 PIC=1
|
2017-09-26 10:21:07 +02:00
|
|
|
|
|
2018-01-17 18:49:05 +01:00
|
|
|
|
cd $SRC/druntime
|
|
|
|
|
make -f posix.mak DMD="$SRC"/dmd/generated/linux/release/*/dmd BUILD=release RELEASE=1 PIC=1
|
2017-09-26 10:21:07 +02:00
|
|
|
|
|
2018-01-17 18:49:05 +01:00
|
|
|
|
cd $SRC/phobos
|
|
|
|
|
make -f posix.mak DMD="$SRC"/dmd/generated/linux/release/*/dmd BUILD=release RELEASE=1 PIC=1
|
2017-05-12 07:05:01 +02:00
|
|
|
|
|
2018-01-17 18:49:05 +01:00
|
|
|
|
install -m 0755 -D $SRC/dmd/generated/linux/release/64/dmd $PKG/usr/bin/dmd
|
2017-05-12 07:05:01 +02:00
|
|
|
|
|
|
|
|
|
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/d/samples/
|
2018-01-17 18:49:05 +01:00
|
|
|
|
cp -r $SRC/dmd/samples/* $PKG/usr/share/d/samples/
|
2017-05-12 07:05:01 +02:00
|
|
|
|
|
|
|
|
|
# Phobos standard library
|
2018-01-17 18:49:05 +01:00
|
|
|
|
install -m 0644 -D $SRC/phobos/generated/linux/release/64/libphobos2.a \
|
2017-05-12 07:05:01 +02:00
|
|
|
|
$PKG/usr/lib/libphobos2.a
|
|
|
|
|
|
|
|
|
|
install -d $PKG/usr/include/dlang/dmd
|
2018-01-17 18:49:05 +01:00
|
|
|
|
cp -r $SRC/phobos/{*.d,etc,std} $PKG/usr/include/dlang/dmd
|
|
|
|
|
cp -r $SRC/druntime/import/* $PKG/usr/include/dlang/dmd/
|
2017-05-12 07:05:01 +02:00
|
|
|
|
|
2018-01-17 18:49:05 +01:00
|
|
|
|
install -m 0644 -D $SRC/phobos/generated/linux/release/64/libphobos2.so \
|
2017-05-12 07:05:01 +02:00
|
|
|
|
$PKG/usr/lib/libphobos2.so
|
2016-02-24 01:27:23 +01:00
|
|
|
|
}
|