diff options
author | Binh Nguyen <binhnguyen@fastmail.fm> | 2010-07-11 02:11:29 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-07-11 02:11:29 -0500 |
commit | 8dff6f4dea853e8ee398a194fdef82a47ce03a53 (patch) | |
tree | 0c7cff22b9a5c2a7249b81d67c874f6eaf2f3e2e /graphics/pinta | |
parent | 316559c823a5e2594d6406e9039e28951a65e4dd (diff) |
graphics/pinta: Added (simple image editor, a Paint.NET clone)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'graphics/pinta')
-rw-r--r-- | graphics/pinta/Pinta.csproj.patch | 11 | ||||
-rw-r--r-- | graphics/pinta/README | 5 | ||||
-rw-r--r-- | graphics/pinta/doinst.sh | 10 | ||||
-rw-r--r-- | graphics/pinta/pinta.SlackBuild | 107 | ||||
-rw-r--r-- | graphics/pinta/pinta.info | 10 | ||||
-rw-r--r-- | graphics/pinta/slack-desc | 19 |
6 files changed, 162 insertions, 0 deletions
diff --git a/graphics/pinta/Pinta.csproj.patch b/graphics/pinta/Pinta.csproj.patch new file mode 100644 index 000000000000..e4d74ddd3dee --- /dev/null +++ b/graphics/pinta/Pinta.csproj.patch @@ -0,0 +1,11 @@ +--- ./Pinta/Pinta.csproj 2010-07-07 02:20:09.000000000 -0700 ++++ ./Pinta/Pinta.csproj.clean 2010-07-07 02:20:59.000000000 -0700 +@@ -214,8 +214,6 @@ + <InstallPrefix>/usr/local</InstallPrefix> + </PropertyGroup> + <ItemGroup> +- <BinFiles Include="$(OutputPath)/Pinta.exe" /> +- <BinFiles Include="$(OutputPath)/Pinta.*.dll" /> + </ItemGroup> + <Target Name="Install"> + <Copy SourceFiles="@(BinFiles)" DestinationFolder="$(InstallPrefix)/lib/pinta" /> diff --git a/graphics/pinta/README b/graphics/pinta/README new file mode 100644 index 000000000000..039021b14d8a --- /dev/null +++ b/graphics/pinta/README @@ -0,0 +1,5 @@ +Pinta is a drawing/editing program modeled after Paint.NET. Its goal is to +provide a simplified alternative to GIMP for casual users. It is currently +early in development. + +This requires gtk-sharp. diff --git a/graphics/pinta/doinst.sh b/graphics/pinta/doinst.sh new file mode 100644 index 000000000000..1f8ff67dedb2 --- /dev/null +++ b/graphics/pinta/doinst.sh @@ -0,0 +1,10 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi + diff --git a/graphics/pinta/pinta.SlackBuild b/graphics/pinta/pinta.SlackBuild new file mode 100644 index 000000000000..64e7055ab78a --- /dev/null +++ b/graphics/pinta/pinta.SlackBuild @@ -0,0 +1,107 @@ +#!/bin/sh + +# Copyright 2010 Binh Nguyen <binhnguyen@fastmail.fm> +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +PRGNAM=pinta +VERSION=${VERSION:-0.4} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) export ARCH=i486 ;; + arm*) export ARCH=arm ;; + *) export ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -eu + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION + +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +# Apply a patch from AUR +patch -p0 < $CWD/Pinta.csproj.patch + +CFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --localedir=/usr/share/locale \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --build=$ARCH-slackware-linux + +make +make install DESTDIR=$PKG + +mkdir -p $PKG/usr/lib/$PRGNAM +cp ./bin/*.* $PKG/usr/lib/$PRGNAM + +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +mv $PKG/usr/share/man $PKG/usr +find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $(find $PKG/usr/man -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a license* readme.txt todo.txt $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/graphics/pinta/pinta.info b/graphics/pinta/pinta.info new file mode 100644 index 000000000000..b7ba55c1be76 --- /dev/null +++ b/graphics/pinta/pinta.info @@ -0,0 +1,10 @@ +PRGNAM="pinta" +VERSION="0.4" +HOMEPAGE="http://pinta-project.com/" +DOWNLOAD="http://github.com/downloads/jpobst/Pinta/pinta-0.4.tar.gz" +MD5SUM="29d9895e8d9ba7354d4991e077ab8f7d" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="Binh Nguyen" +EMAIL="binhnguyen@fastmail.fm" +APPROVED="rworkman" diff --git a/graphics/pinta/slack-desc b/graphics/pinta/slack-desc new file mode 100644 index 000000000000..ef3534bc21ef --- /dev/null +++ b/graphics/pinta/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler------------------------------------------------------| +pinta: Pinta (simple image editor, a Paint.NET clone) +pinta: +pinta: Pinta is a drawing/editing program modeled after Paint.NET. Its goal +pinta: is to provide a simplified alternative to GIMP for casual users. +pinta: +pinta: Homepage: http://pinta-project.com/ +pinta: +pinta: +pinta: +pinta: +pinta: |