pencil: v2.0.5 -> v2.0.8

Switch to actively developed fork.
This commit is contained in:
Pavan Rikhi 2015-03-30 22:59:04 -04:00
parent f2df60e2fb
commit f67ce9160d
No known key found for this signature in database
GPG Key ID: A736A3428D5063BB
1 changed files with 9 additions and 10 deletions

View File

@ -1,33 +1,32 @@
{ stdenv, fetchurl, xulrunner }: { stdenv, fetchurl, xulrunner }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "pencil-2.0.5"; version = "2.0.8";
name = "pencil-${version}";
src = fetchurl { src = fetchurl {
url = "http://evoluspencil.googlecode.com/files/${name}.tar.gz"; url = "https://github.com/prikhi/pencil/releases/download/v${version}/Pencil-${version}-linux-pkg.tar.gz";
sha256 = "0rn5nb08p8wph5s5gajkil6y06zgrm86p4gnjdgv76czx1fqazm0"; sha256 = "3426d0222b213649e448b06384556718c833667394f442682ff66da3cda1b881";
}; };
# Pre-built package buildPhase = "";
buildPhase = "true";
installPhase = '' installPhase = ''
mkdir -p "$out" mkdir -p "$out"
cp -r usr/* "$out" cp -r usr/* "$out"
cp COPYING "$out/share/pencil"
sed -e "s|/usr/bin/xulrunner|${xulrunner}/bin/xulrunner|" \ sed -e "s|/usr/bin/xulrunner|${xulrunner}/bin/xulrunner|" \
-e "s|/usr/share/pencil|$out/share/pencil|" \ -e "s|/usr/share/evolus-pencil|$out/share/evolus-pencil|" \
-i "$out/bin/pencil" -i "$out/bin/pencil"
sed -e "s|/usr/bin/pencil|$out/bin/pencil|" \ sed -e "s|/usr/bin/pencil|$out/bin/pencil|" \
-e "s|Icon=.*|Icon=$out/share/pencil/skin/classic/icon.svg|" \ -e "s|Icon=.*|Icon=$out/share/evolus-pencil/skin/classic/icon.svg|" \
-i "$out/share/applications/pencil.desktop" -i "$out/share/applications/pencil.desktop"
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "GUI prototyping/mockup tool"; description = "GUI prototyping/mockup tool";
homepage = http://pencil.evolus.vn/; homepage = http://github.com/prikhi/pencil;
license = licenses.gpl2; # Commercial license is also available license = licenses.gpl2; # Commercial license is also available
maintainers = [ maintainers.bjornfor ]; maintainers = with maintainers; [ bjornfor prikhi ];
platforms = platforms.linux; platforms = platforms.linux;
}; };
} }