development/mono-addins: Avoid nuget to build.

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Matteo Bernardini 2022-02-16 21:14:50 +01:00 committed by Willy Sudiarto Raharjo
parent bac2121e13
commit 7397d7cd19
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 15 additions and 12 deletions

View file

@ -26,6 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=mono-addins
VERSION=${VERSION:-1.3.5}
COMMIT="c636f258d0a724e7c0de447ea717d18cb90bfb17"
COMMIT2="d25dd923839404bd64cc63f420e75acf96fc75c4"
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -72,6 +73,7 @@ cd $TMP
rm -rf $PRGNAM-$COMMIT
tar xvf $CWD/$PRGNAM-$COMMIT.tar.gz
cd $PRGNAM-$COMMIT
unzip $CWD/mono_msbuild_${COMMIT2}.zip
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@ -79,6 +81,8 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
msbuild=$(pwd)/msbuild/MSBuild.exe
./autogen.sh
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@ -92,15 +96,12 @@ MCS=/usr/bin/mcs \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--build=$ARCH-slackware-linux
nuget restore Mono.Addins.sln
make
( cd bin
ls Mono.*.dll |
while read file;
do
sn -R $file ../mono-addins.snk;
done
)
mono "${msbuild}" Mono.Addins/Mono.Addins.csproj /p:WarningLevel=0;Configuration=Release
mono "${msbuild}" Mono.Addins.CecilReflector/Mono.Addins.CecilReflector.csproj /p:WarningLevel=0;Configuration=Release
mono "${msbuild}" Mono.Addins.Gui/Mono.Addins.Gui.csproj /p:WarningLevel=0;Configuration=Release
mono "${msbuild}" Mono.Addins.MSBuild/Mono.Addins.MSBuild.csproj /p:WarningLevel=0;Configuration=Release
mono "${msbuild}" Mono.Addins.Setup/Mono.Addins.Setup.csproj /p:WarningLevel=0;Configuration=Release
make install DESTDIR=$PKG
# Fix pkg-config prefix

View file

@ -1,10 +1,12 @@
PRGNAM="mono-addins"
VERSION="1.3.5"
HOMEPAGE="https://github.com/mono/mono-addins"
DOWNLOAD="https://github.com/mono/mono-addins/archive/c636f258d0a724e7c0de447ea717d18cb90bfb17/mono-addins-c636f258d0a724e7c0de447ea717d18cb90bfb17.tar.gz"
MD5SUM="64dc3e784fdc373e78021ec096c9179b"
DOWNLOAD="https://github.com/mono/mono-addins/archive/c636f258d0a724e7c0de447ea717d18cb90bfb17/mono-addins-c636f258d0a724e7c0de447ea717d18cb90bfb17.tar.gz \
https://github.com/Microsoft/msbuild/releases/download/mono-hosted-msbuild-v0.03/mono_msbuild_d25dd923839404bd64cc63f420e75acf96fc75c4.zip"
MD5SUM="64dc3e784fdc373e78021ec096c9179b \
14345c2f2dc53aa902a89419e234d2d4"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="gtk-sharp nuget"
REQUIRES="gtk-sharp"
MAINTAINER="Andre Barboza"
EMAIL="bmg.andre@gmail.com"