summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2018-01-22 16:38:07 +0100
committerAndreas Grapentin <andreas@grapentin.org>2018-01-22 16:38:07 +0100
commit037c8778aca2652be485e9e5ef6dbd081463604c (patch)
tree90d3d1dde300166106b313251ccdb3c0f230f967 /pcr
parent00187a1fed05972f31b419587884bfeb372ac09f (diff)
downloadabslibre-037c8778aca2652be485e9e5ef6dbd081463604c.tar.gz
abslibre-037c8778aca2652be485e9e5ef6dbd081463604c.tar.bz2
abslibre-037c8778aca2652be485e9e5ef6dbd081463604c.zip
pcr/pencil2d: updated to 0.6.0
Diffstat (limited to 'pcr')
-rw-r--r--pcr/pencil2d/PKGBUILD116
-rw-r--r--pcr/pencil2d/pencil.desktop11
-rw-r--r--pcr/pencil2d/pencil.pngbin16354 -> 0 bytes
-rw-r--r--pcr/pencil2d/pencil.xml11
4 files changed, 20 insertions, 118 deletions
diff --git a/pcr/pencil2d/PKGBUILD b/pcr/pencil2d/PKGBUILD
index 1ffcba796..8d76f59ec 100644
--- a/pcr/pencil2d/PKGBUILD
+++ b/pcr/pencil2d/PKGBUILD
@@ -1,107 +1,31 @@
-# Maintainer: Márcio Silva <coadde@hyperbola.info>
+# Maintainer (AUR): Jakob Gahde <j5lx@fmail.co.uk>
+# Contributor: Márcio Silva <coadde@hyperbola.info>
+
+# parabola changes and rationale:
+# - added .install file to update desktop database
pkgname=pencil2d
-pkgver=0.5.4.git20140720
-pkgcommit=52528802ed2b33f60ae6d4370e6fe09f66ccb45c # July 20, 2014
+pkgver=0.6.0
pkgrel=1
-pkgdesc='Pencil is an animation/drawing software'
-arch=(
- x86_64
- i686
-)
-url=http://http://www.pencil2d.org/
-license=(GPL2)
-depends=(
- desktop-file-utils
- ming
- qt5-multimedia
- qt5-svg
- shared-mime-info
- xdg-utils
-)
-makedepends=(
- git
- qt5-tools
-)
+pkgdesc="An easy, intuitive tool to make 2D hand-drawn animations"
+arch=('x86_64' 'i686' 'armv7h')
+url="https://pencil2d.org/"
+license=('GPL2')
+depends=('qt5-multimedia' 'qt5-svg' 'qt5-xmlpatterns' 'hicolor-icon-theme' 'ffmpeg')
install=$pkgname.install
-options=(!libtool)
-source=(
- $pkgname-$pkgver::git+https://github.com/pencil2d/pencil#commit=$pkgcommit
- ${pkgname%2d}.{desktop,png,xml}
-)
-sha512sums=(
- SKIP
- bd291f9f484077260751220de4723f1f005f97f4340904283ba7ecda52888dd2562e5d6424e3063b1e72b5ffd0af4c658b09742473106262910f1f50aec0dfff
- 2158141d405290ef018d5fa19e35c9b909c8e85b0f2d41e74a652eab35749727fa9b15993b594fff78659954d30a7df71323a563ea10ac17c17d3ce86a15f687
- 654a2adc27c015414d122b11f70c9381097abc9f972a914c01f8fefa18c3f8ab7e97aa4b573115d9c8ff70115af21c5e6f3daa535a84a7a1044c56daa97444f8
-)
-no3rdlib=no # !!! unstable build !!!
-[ $no3rdlib == yes ] && depends+=(quazip) # build with qt4 (zlib included)
-nostaticlib=no # !!! crash in test and app compilation !!!
- # $srcdir/$pkgname-$pkgver/{app,tests}/../core_lib//libcore_lib.so: undefined reference to `vtable for LayerImage'
-
-prepare() {
- cd $srcdir/$pkgname-$pkgver
-
- if [ $no3rdlib == yes ]; then
- # remove unused 3rdlib (quazip and zlib) source
- rm -vr 3rdlib
- sed -i '\|^quazip|d
- \|^zlib|d
- \|^SUBDIRS| s| quazip zlib||
- \|core_lib.depends|d
- ' pencil.pro
- sed -i '\|DEPENDPATH| s|$$PWD/../3rdlib/quazip|/usr/lib|
- \|DEPENDPATH| s|$$PWD/../3rdlib/zlib|/usr/lib|
- \|INCLUDEPATH| s|$$PWD/../3rdlib/quazip|/usr/include/quazip|
- \|INCLUDEPATH| s|$$PWD/../3rdlib/zlib|/usr/include|
- \|LIBS| s|$$OUT_PWD/../3rdlib/quazip/|/usr/lib|
- \|LIBS| s|$$OUT_PWD/../3rdlib/zlib/ -lzlib|/usr/lib|
- \|PRE_TARGETDEPS| s|$$OUT_PWD/../3rdlib/quazip/libquazip.a|/usr/lib/libquazip.so|
- \|PRE_TARGETDEPS| s|$$OUT_PWD/../3rdlib/zlib/libzlib.a|/usr/lib/libz.so|
- ' app/app.pro core_lib/core_lib.pro tests/tests.pro
- fi
-
- if [ $nostaticlib == yes ]; then
- # remove staticlib configuration
- sed -i '\|^CONFIG| s| staticlib||
- s|libcore_lib.a|libcore_lib.so|
- ' core_lib/core_lib.pro
- fi
-}
+source=("https://github.com/pencil2d/pencil/archive/${pkgver}.tar.gz")
+md5sums=('46ec6cb485b45ede9bd6a9728c9fc1a5')
build() {
- cd $srcdir/$pkgname-$pkgver
- export QTDIR=/usr
- qmake-qt5 PREFIX=$pkgdir/usr && make
+ cd "${srcdir}/pencil-${pkgver}"
+
+ qmake-qt5 PREFIX=/usr
+ make
}
package() {
- cd $srcdir/$pkgname-$pkgver
- make DESTDIR=$pkgdir install
-
- # package executable files that's not added in Makefile
- install -vd $pkgdir/usr/bin
- install -vD $srcdir/$pkgname-$pkgver/app/Pencil2D $pkgdir/usr/bin/pencil2d
- install -vD $srcdir/$pkgname-$pkgver/tests/tests $pkgdir/usr/bin/pencil2d-tests
-
- # remove 3rdlib conflicting headers
- [ $no3rdlib == no ] && rm -vr $pkgdir/usr/include
-
- if [ $nostaticlib == yes ]; then
- # package library files that's not added in Makefile
- install -vd $pkgdir/usr/lib
- install -vD $srcdir/$pkgname-$pkgver/core_lib/libcore_lib.so $pkgdir/usr/lib
- install -vD $srcdir/$pkgname-$pkgver/core_lib/libcore_lib.so.1 $pkgdir/usr/lib
- install -vD $srcdir/$pkgname-$pkgver/core_lib/libcore_lib.so.1.0 $pkgdir/usr/lib
- install -vD $srcdir/$pkgname-$pkgver/core_lib/libcore_lib.so.1.0.0 $pkgdir/usr/lib
- else
- # remove unused lib files
- rm -vr $pkgdir/usr/lib
- fi
+ cd "${srcdir}/pencil-${pkgver}"
- install -vdp $pkgdir/usr/share/{applications,mime/packages,pixmaps}
- install -vD $srcdir/${pkgname%2d}.desktop $pkgdir/usr/share/applications
- install -vD $srcdir/${pkgname%2d}.png $pkgdir/usr/share/mime/packages
- install -vD $srcdir/${pkgname%2d}.xml $pkgdir/usr/share/pixmaps
+ make install INSTALL_ROOT="${pkgdir}"
+ rm -rf "${pkgdir}/usr/lib"
}
diff --git a/pcr/pencil2d/pencil.desktop b/pcr/pencil2d/pencil.desktop
deleted file mode 100644
index dbe25130c..000000000
--- a/pcr/pencil2d/pencil.desktop
+++ /dev/null
@@ -1,11 +0,0 @@
-[Desktop Entry]
-Encoding=UTF-8
-Name=Pencil 2D
-Comment=2D Traditional Animation
-Exec=pencil2d
-Icon=pencil.png
-Terminal=false
-Type=Application
-Categories=Graphics;Application;
-MimeType=application/x-pencil;
-X-Desktop-File-Install-Version=0.15
diff --git a/pcr/pencil2d/pencil.png b/pcr/pencil2d/pencil.png
deleted file mode 100644
index 0fe4d1cd8..000000000
--- a/pcr/pencil2d/pencil.png
+++ /dev/null
Binary files differ
diff --git a/pcr/pencil2d/pencil.xml b/pcr/pencil2d/pencil.xml
deleted file mode 100644
index 0f13b8830..000000000
--- a/pcr/pencil2d/pencil.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
- <mime-type type="application/x-pencil">
- <comment xml:lang="en">Pencil Animation</comment>
- <glob pattern="*.pcl" />
- <magic priority="80">
- <match value="&lt;!DOCTYPE PencilDocument" type="string" offset="0:64"/>
- </magic>
- <icon name="pencil"/>
- </mime-type>
-</mime-info>