diff options
Diffstat (limited to 'development/nant/nant.SlackBuild')
-rw-r--r-- | development/nant/nant.SlackBuild | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/development/nant/nant.SlackBuild b/development/nant/nant.SlackBuild index ad82acdb6c703..e222129f5ae43 100644 --- a/development/nant/nant.SlackBuild +++ b/development/nant/nant.SlackBuild @@ -5,7 +5,7 @@ # Written by (Asaf) (asaf@lingnu.com) PRGNAM=nant -VERSION=${VERSION:-0.90} +VERSION=${VERSION:-0.92} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -28,7 +28,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION-src.tar.gz +tar xvf $CWD/$PRGNAM-$VERSION-bin.tar.gz cd $PRGNAM-$VERSION chown -R root:root . find . \ @@ -37,17 +37,18 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -# Fix prefix declaration in pkgconfig file -patch -p1 < $CWD/fixup-nant_pc.diff +mkdir -p $PKG/usr/bin +mkdir -p $PKG/usr/share/NAnt -# Fix pkgconfig directory on x86_64 -[ "$ARCH" = "x86_64" ] && patch -p1 < $CWD/fixup-x86_64-pkgconfig_dir.diff - -make -make install DESTDIR=$PKG prefix=/usr +cp -R * $PKG/usr/share/NAnt +echo '/usr/bin/mono /usr/share/NAnt/bin/NAnt.exe "$@"' > $PKG/usr/bin/nant +chmod +x $PKG/usr/bin/nant mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +mv $PKG/usr/share/NAnt/*.txt $PKG/usr/doc/$PRGNAM-$VERSION/ +mv $PKG/usr/share/NAnt/doc/* $PKG/usr/doc/$PRGNAM-$VERSION/ +mv $PKG/usr/share/NAnt/examples $PKG/usr/doc/$PRGNAM-$VERSION/ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |