wok-next rev 20867
pinta: fix build
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Jul 02 00:18:34 2018 +0300 (2018-07-02) |
parents | 8a42150f2543 |
children | 3d69ff1006bd |
files | pinta/receipt |
line diff
1.1 --- a/pinta/receipt Sun Jul 01 23:19:43 2018 +0300 1.2 +++ b/pinta/receipt Mon Jul 02 00:18:34 2018 +0300 1.3 @@ -1,4 +1,4 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="pinta" 1.8 VERSION="1.6" 1.9 @@ -7,23 +7,27 @@ 1.10 MAINTAINER="al.bobylev@gmail.com" 1.11 LICENSE="MIT" 1.12 WEB_SITE="https://pinta-project.com/" 1.13 + 1.14 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.15 WGET_URL="https://github.com/PintaProject/Pinta/archive/$VERSION.tar.gz" 1.16 + 1.17 COOKOPTS="!pixmaps" 1.18 1.19 DEPENDS="mono gtk-sharp" 1.20 -BUILD_DEPENDS="automake mono-dev gtk-sharp-dev" 1.21 +BUILD_DEPENDS="automake intltool gettext glib-dev mono-dev gtk-sharp-dev" 1.22 1.23 -# Rules to configure and make the package. 1.24 -compile_rules() 1.25 -{ 1.26 +compile_rules() { 1.27 + # update the project and solution files for mono4 (taken from Fedora) 1.28 + find . -name "*.sln" -print -exec sed -i 's/Format Version 10.00/Format Version 11.00/g' '{}' \; 1.29 + find . \( -name "*.csproj" -o -name "*.proj" \) -print -exec \ 1.30 + sed -i 's#ToolsVersion="3.5"#ToolsVersion="4.0"#g; s#<TargetFrameworkVersion>.*</TargetFrameworkVersion>##g; s#<PropertyGroup>#<PropertyGroup><TargetFrameworkVersion>v4.5</TargetFrameworkVersion>#g; s#Mono.Posix, Version.*"#Mono.Posix"#g' '{}' \; 1.31 + 1.32 ./autogen.sh 1.33 - make && make install 1.34 + make && 1.35 + make install 1.36 } 1.37 1.38 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.39 -genpkg_rules() 1.40 -{ 1.41 +genpkg_rules() { 1.42 copy pinta *.dll *.exe *.mo 1.43 cook_copy_icons 16 32 # 48 is absent 1.44 }