diff options
author | B. Watson <yalhcru@gmail.com> | 2017-04-04 15:11:06 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-04-08 06:57:43 +0700 |
commit | 546c6cafbad8f0e130a1063d3e0f85ae84890a16 (patch) | |
tree | 67df0d354e62e7bc223a985dc71baa67fe82fcca /office/djvusmooth | |
parent | 8917195434f715a225b1618329b11b48f5fd876b (diff) |
office/djvusmooth: Added (graphical editor for DjVu documents).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'office/djvusmooth')
-rw-r--r-- | office/djvusmooth/README | 11 | ||||
-rw-r--r-- | office/djvusmooth/djvusmooth.SlackBuild | 62 | ||||
-rw-r--r-- | office/djvusmooth/djvusmooth.info | 10 | ||||
-rw-r--r-- | office/djvusmooth/djvusmooth.xpm | 310 | ||||
-rw-r--r-- | office/djvusmooth/doinst.sh | 3 | ||||
-rw-r--r-- | office/djvusmooth/slack-desc | 19 |
6 files changed, 415 insertions, 0 deletions
diff --git a/office/djvusmooth/README b/office/djvusmooth/README new file mode 100644 index 0000000000000..29bf36a70a38f --- /dev/null +++ b/office/djvusmooth/README @@ -0,0 +1,11 @@ +djvusmooth (graphical editor for DjVu documents) + +djvusmooth is a graphical editor for DjVu files, which allows one to: + +- edit document metadata, +- edit document outline (bookmarks), +- add, remove or edit hyperlinks, +- correct occasional errors in the hidden text layer. + +Although wxPython is listed as a required dependency, it may be possible +to use wxPython3 instead (not tested by SlackBuild author). diff --git a/office/djvusmooth/djvusmooth.SlackBuild b/office/djvusmooth/djvusmooth.SlackBuild new file mode 100644 index 0000000000000..3acf0e87815ba --- /dev/null +++ b/office/djvusmooth/djvusmooth.SlackBuild @@ -0,0 +1,62 @@ +#!/bin/sh + +# Slackware build script for djvusmooth + +# Written by B. Watson (yalhcru@gmail.com) + +# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. + +PRGNAM=djvusmooth +VERSION=${VERSION:-0.2.18} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +# once again, pure python, should be noarch except for lib vs. lib64. +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +set -e + +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 -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +sed -i 's,share/man,man,' setup.py +python setup.py install --root=$PKG +gzip -9 $PKG/usr/man/man1/$PRGNAM.1 + +# Icon came from https://packages.debian.org/sid/djvusmooth +mkdir -p $PKG/usr/share/pixmaps +cat $CWD/$PRGNAM.xpm > $PKG/usr/share/pixmaps/$PRGNAM.xpm + +echo "Icon=$PRGNAM" >> $PKG/usr/share/applications/$PRGNAM.desktop + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a doc/COPYING doc/changelog doc/credits.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/office/djvusmooth/djvusmooth.info b/office/djvusmooth/djvusmooth.info new file mode 100644 index 0000000000000..307b737f9dff3 --- /dev/null +++ b/office/djvusmooth/djvusmooth.info @@ -0,0 +1,10 @@ +PRGNAM="djvusmooth" +VERSION="0.2.18" +HOMEPAGE="http://jwilk.net/software/djvusmooth" +DOWNLOAD="https://github.com/jwilk/djvusmooth/releases/download/0.2.18/djvusmooth-0.2.18.tar.gz" +MD5SUM="3f3a36cc175773246e577eebef7e5b8f" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="wxPython python-djvulibre" +MAINTAINER="B. Watson" +EMAIL="yalhcru@gmail.com" diff --git a/office/djvusmooth/djvusmooth.xpm b/office/djvusmooth/djvusmooth.xpm new file mode 100644 index 0000000000000..853ffbd7a311b --- /dev/null +++ b/office/djvusmooth/djvusmooth.xpm @@ -0,0 +1,310 @@ +/* XPM */ +static char *djvusmooth[] = { +/* columns rows colors chars-per-pixel */ +"48 48 256 2", +" c #C7C6CA", +". c #4F1BA3", +"X c #FEB747", +"o c #AF9264", +"O c #7440CE", +"+ c #634794", +"@ c #73648C", +"# c #FEA518", +"$ c #34007C", +"% c #785232", +"& c #FF9B01", +"* c #965A02", +"= c #B6B5B5", +"- c #FEA505", +"; c #FEBB57", +": c #FEC166", +"> c #959099", +", c #B66836", +"< c #CBC9D8", +"1 c #7542D0", +"2 c #FC9601", +"3 c #594C72", +"4 c #FBA727", +"5 c #C3B7DB", +"6 c #915DF6", +"7 c #926760", +"8 c #DB810B", +"9 c #AA93D5", +"0 c #78480A", +"q c #7558A7", +"w c #4E3106", +"e c #7D49DB", +"r c #573B82", +"t c #EB8C04", +"y c #6431BB", +"u c #E58C22", +"i c #FFC350", +"p c #FFD495", +"a c #9A78D9", +"s c #A679FF", +"d c #E6E4E9", +"f c #FFB639", +"g c #8955EB", +"h c #FFBA16", +"j c #B8A9D3", +"k c #472877", +"l c #C7B9E3", +"z c #8468B4", +"x c #5E2AB3", +"c c #B28DB2", +"v c #6C38C4", +"b c #A385D7", +"n c #AA9AC6", +"m c #D47D0A", +"M c #170055", +"N c #827995", +"B c #FFDDA9", +"V c #8451E3", +"C c #BFBEC4", +"Z c #4D2D26", +"A c #210451", +"S c #966217", +"D c #C87901", +"F c #713DCB", +"G c #F69302", +"H c #9D95A8", +"J c #C97511", +"K c #DDB275", +"L c #9561FB", +"P c #D9DAD5", +"I c #7A45D9", +"U c #E68B0B", +"Y c #FFC021", +"T c #A5621A", +"R c #5D418A", +"E c #725E95", +"W c #FEAC32", +"Q c #2C0E77", +"! c #B086FF", +"~ c #7F4CDE", +"^ c #622EB7", +"/ c #AAA8AC", +"( c #AEA8B8", +") c #5925AC", +"_ c #8E5AF3", +"` c #EB9B3B", +"' c #B2A2CC", +"] c #824EE2", +"[ c #A28BCD", +"{ c #3A2405", +"} c #7845D4", +"| c #380482", +" . c #BE7710", +".. c #DBDCD9", +"X. c #4D2F79", +"o. c #FFCD83", +"O. c #E4CDBA", +"+. c #9D69FF", +"@. c #E99417", +"#. c #E2E5D9", +"$. c #FFB10A", +"%. c #6936C1", +"&. c #6A4E9A", +"*. c #563592", +"=. c #FEC871", +"-. c #E4DBD8", +";. c #FF9F0D", +":. c #D5984F", +">. c #6845A6", +",. c #451194", +"<. c #9987B4", +"1. c #36017F", +"2. c #6740B0", +"3. c #BCA2EE", +"4. c #A27DE6", +"5. c #521FA4", +"6. c #51357F", +"7. c #DFD0FB", +"8. c #7049BC", +"9. c #B79CEB", +"0. c #976F30", +"q. c #B66C07", +"w. c #9589A9", +"e. c #6E3BC8", +"r. c #4D1A9E", +"t. c #FFB01F", +"y. c #E4AE55", +"u. c #261233", +"i. c #2D0072", +"p. c #C4C6C2", +"a. c #9379C6", +"s. c #9865FE", +"d. c #D5D4D9", +"f. c #4A2886", +"g. c #CBB6F2", +"h. c #400D8C", +"j. c #B099DB", +"k. c #F29D19", +"l. c #3E0A89", +"z. c #DDE0D8", +"x. c #7C5423", +"c. c #E18515", +"v. c #0A0709", +"b. c #B76919", +"n. c #67538C", +"m. c #733DD3", +"M. c #E1870B", +"N. c #5622A8", +"B. c #542A87", +"V. c #531D90", +"C. c #554227", +"Z. c #4B179A", +"A. c #9262EC", +"S. c #8C59EF", +"D. c #BEC0B9", +"F. c #A16FFF", +"G. c #7C46E0", +"H. c #532B9A", +"J. c #7A5DB1", +"K. c #8653E7", +"L. c #5323B8", +"P. c #5D38A2", +"I. c #AD6A04", +"U. c #D1D4CD", +"Y. c #8E69D3", +"T. c #3C177A", +"R. c #926CDA", +"E. c #481596", +"W. c #8A71B8", +"Q. c #FFE6C0", +"!. c #C1ACE6", +"~. c #160433", +"^. c #D79227", +"/. c #D8840F", +"(. c #8765C1", +"). c #3A2366", +"_. c #3B0785", +"`. c #7642D7", +"'. c #220162", +"]. c #E78905", +"[. c #9E72F2", +"{. c #430F90", +"}. c #4F1DB3", +"|. c #8157CE", +" X c #CDCFC8", +".X c #F08F05", +"XX c #9C83C8", +"oX c #7C4FCF", +"OX c #613B02", +"+X c #6D3DBD", +"@X c #7053A0", +"#X c #FFEED5", +"$X c #625180", +"%X c #6734BE", +"&X c #7A5FA8", +"*X c #5A28C4", +"=X c #310077", +"-X c #360C85", +";X c #C58428", +":X c #5B28AF", +">X c #9E92B4", +",X c #BFB1D6", +"<X c #35087F", +"1X c #EFA131", +"2X c #692F9C", +"3X c #9E5A1A", +"4X c #672FA4", +"5X c #A56D99", +"6X c #C07065", +"7X c #DEA961", +"8X c #9FA5AF", +"9X c #7D40B3", +"0X c #ADACBA", +"qX c #411586", +"wX c #9B70EC", +"eX c #D9A757", +"rX c #8C5FE4", +"tX c #91578E", +"yX c #DF931F", +"uX c #EDC8A0", +"iX c #EDC790", +"pX c #E0D4F3", +"aX c #401E26", +"sX c #6E3FC4", +"dX c #C16F14", +"fX c #361184", +"gX c #C3A98E", +"hX c #9077BD", +"jX c #6732C1", +"kX c #6A35D3", +"lX c #B0782A", +"zX c #DF8503", +"xX c #CF871C", +"cX c #B08CF8", +"vX c #AF91EB", +"bX c #F4970C", +"nX c #BB93FF", +"mX c #ECE9F0", +"MX c #FFFAF3", +"NX c #D98435", +"BX c #CFC2E8", +"VX c #CFD7ED", +"CX c #F4A741", +"ZX c #D8D0E5", +"AX c #9460F8", +"SX c #382754", +"DX c #6A3831", +"FX c #D6D7D2", +"GX c #D9D5D1", +"HX c #5723BC", +"JX c #432079", +"KX c #412C6C", +"LX c #652FC3", +"PX c #7E63AC", +"IX c #8C7BAD", +"UX c None", +/* pixels */ +"UXUXUXUXUXUXUXUXUXUXH X.X.6.).3 = @ SX> H + R R + + + + &.&.&.&.@X@X@X@Xq q q q J.J.J.J.J.>XUXUX", +"UXUXUXUXUXUXUXUXUXUX<.5.+X+X+X6./ ZXP.@ FXb v m.O O O 1 O O 1 1 1 1 `.1 1 1 1 1 1 O O 1 g [ UXUX", +"UXUXUXUXUXUXUXUXUXUX<.oXnX! ! wX+ D.7.2.N ..cX6 AX6 _ S.K.V ~ e } 1 F e.%.y ^ x ) N.. N.g [ UXUX", +"UXUXUXUXUXUXUXUXUXUX<.1 ! s s s rXn. Xg.P.H d.[._ _ g g V ] e e } O F v %.%X^ x :X) 5.) g [ UXUX", +"UXUXUXUXUXUXUXUXUXUX< oXs s F.F.F.oX@ ..9.*./ < A.g g K.V ~ e I 1 O e.v %.y ^ x :XN.. ) S.9 UXUX", +"UXUXUXUXUXUXUXUXUXUXd !.F.F.F.+.+.+.8.N d a R D.5 g K.V ] ~ e } 1 F e.v %Xy ^ :X) N.. N._ 9 UXUX", +"UXUXUXUXUXUXUXUXUXUX z.3.L 3.g.s.s.+.2.> d |.$Xp.j.] ] ~ e I 1 O F v %.y ^ x :X) 5.r.N.6 9 UXUX", +"UXUXUXUXUXUXUXUXUXUXN H ..cXa.z.9.L s.AX>./ pX2.@ Xb G.e e } 1 F e.v %Xy ^ x ) N.5.r.N.6 9 UXUX", +"UXUXUXUXUXUXUXUXUXUXn JX= ..R.IXz.vX6 AXg + D.g.H.N XR.`.} 1 O F v %.y y x :X) N.5.Z.N.AX9 UXUX", +"UXUXUXUXUXUXUXUXUXUXn e.+ ZX|.>X..4._ 6 e n.U.3.k > |.m.1 F e.v %Xy ^ x :XN.5.. E.5.AXj.UXUX", +"UXUXUXUXUXUXUXUXUXUXn G.K.n.U.BX8.( d.wXg _ sX@ #.b k / ,X} F F v %.y y x :X) N.5.r.E.5.AXj.UXUX", +"UXUXUXUXUXUXUXUXUXUXn I +.} @ P !.>.C < A.V g P.N mX(.X.= n e.v %.%Xy ^ x :XN.5.. r.,.5.L j.UXUX", +"UXUXUXUXUXUXUXUXUXUX' I L s.2.N ..j.+ X5 K.] ] *.> mX>.3 D.XXLX%Xy ^ x :X) N.5.r.Z.,.. AX9 UXUX", +"UXUXUXUXUXUXUXUXUXUX' I AX6 6 P.w...a &.P j ~ G.} 6.= pXf.@ D.(.*X*Xx 4X) N.5.. r.E.{.r._ 9 UXUX", +"UXUXUXUXUXUXUXUXUXUX' I 6 S.S.g *./ P (.E z.9 `.I +X6. l T.N = tX7 NXu 2X5.5.r.E.E.h.Z.g [ UXUX", +"UXUXUXUXUXUXUXUXUXUXj `.S.g g g ~ 6.= < >.N z.a m.`.L.3 d.c b.1Xt.X =.f DXfX. Z.E.,.l.E.V [ UXUX", +"UXUXUXUXUXUXUXUXUXUXj I g K.V V K.F R p.5 *.H P Y.9X6XS 7 -.X f ; : =.i * A . Z.,.{.l.,.~ XXUXUX", +"UXUXUXUXUXUXUXUXUXUXj I K.V ] ] ~ ] y $X Xj B.0X< 5X2 & S 0XuXW X X ; i m ~.Z.E.{.h._.{.I a.UXUX", +"UXUXUXUXUXUXUXUXUXUXj I ] ~ ~ e e e e H.@ X[ f.C < ` & m > O.4 W f X X # aX-X,.{.l._.h.1 hXUXUX", +"UXUXUXUXUXUXUXUXUXUX,X`.~ e e I } } } `.f.N XhX6.C GX7X:. O.;.# 4 W W t.0 i.,.l._.| l.F W.UXUX", +"UXUXUXUXUXUXUXUXUXUX,X`.I } } } 1 O O O e.JX> p.z f.H < VX-.CX2 ;.;.# # # b.A h.l._.$ l.%.W.UXUX", +"UXUXUXUXUXUXUXUXUXUX,X`.} 1 1 O O F F e.e.jXk H D.z B.lX:.@.2 2 & & & & ;.t u._._.| $ _.%Xz UXUX", +"UXUXUXUXUXUXUXUXUXUX5 `.O O F F e.e.v v %.%.^ JXN = <.u 2 G 2 2 2 & 2 2 & ;.Z i.| $ $ _.^ PXUXUX", +"UXUXUXUXUXUXUXUXUXUX5 `.e.e.e.e.v v %.%Xy y y x T.$X8XeXG t G G G 2 2 2 & - 3X'.1.$ $ _.x &XUXUX", +"UXUXUXUXUXUXUXUXUXUX5 m.v v v %.%.%Xy y ^ ^ x x :XqX).7 G ].t .XG & & G 8 3XZ '.$ $ $ _.) q UXUX", +"UXUXUXUXUXUXUXUXUXUXl m.%X%X%Xy y y ^ ^ x x :X:X) ) r.T.M.t G 2 ].q.0 aXA M i.=X$ $ $ _.N.@XUXUX", +"UXUXUXUXUXUXUXUXUXUXl m.y y y ^ ^ ^ x x :X:X) N.N.5.. }., c.* w u.M '.i.1.| 1.$ $ $ $ | 5.&.UXUX", +"UXUXUXUXUXUXUXUXUXUXl kXHXHXHXHXL.L.}.}.}.}.}.. . . r.Z.V.Z.'.'.<X_._.| 1.$ $ $ $ $ $ | r.+ UXUX", +";X;X;X;X;X;X;X;X;X;X;X . . . . . . . . . . . . . .Z.Z.E.,.{.{.h.l._.| $ $ $ $ $ $ $ $ | Z.+ UXUX", +" .W : ; ; X X X f f Y Y Y Y h h $.$.$.- - - G & , -XE.,.{.h.l._._.| $ $ $ $ $ $ $ $ $ | ,.R UXUX", +" .: MX#XQ.B iXK =.: X 1Xk.;.t 2 2 2 G .X].8 J U T '.{.{.h.l._.| 1.$ $ $ $ $ $ $ $ $ $ 1.,.r UXUX", +" .; #XQ.B B C.Z C.; i S 0 M.w & & & G .X].8 J U T M h.l._._.| $ $ $ $ $ $ $ $ $ $ $ $ 1.h.r UXUX", +" .; Q.B B p C.7XC.lXlXlXOXI.OXI.zX* t .X].8 dXU T '.l._.| 1.$ $ $ $ $ $ $ $ $ $ $ $ $ 1.l.6.UXUX", +" .X B p p o.C.eX0.x.w xXw 0 * OXD w zX.XM.m dXU T M | | $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ 1._.X.UXUX", +" .X p o.o.=.C.y.x.0.w @.OX{ D w D w zX.XM.m b.M.T M 1.$ $ $ $ $ $ $ $ $ =X=X$ $ $ $ $ $ | X.UXUX", +" .W o.=.=.: Z x.w ^.w bX0 v.& w 0 { zXt 8 J b.M.T M $ $ $ $ $ $ $ $ 1.1.E.h.$ =X=X=X=X=Xl.k UXUX", +" .W : : ; X 0.x.^.yX{ G m I.& q.OX* ].M.m J T /.T M $ $ $ $ $ $ $ =XA '.oXs.g } %X:XN.2.r UXUXUX", +" .4 ; ; X X f f t.S * 2 & & 2 2 & 2 ].8 J dX3XJ T M $ $ $ $ $ $ $ 1.~.v.KX+.s.6 g ] 4.E UXUXUXUX", +" .;.# # # ;.;.;.- ;.$.$.h h Y Y h h t.# # k.@.- T M $ $ $ $ $ $ $ $ i.v.u.AXS.V e a E UXUXUXUXUX", +"o o o o o o o o o o gX% % % % % % % % % x.% x.x.aXA $ $ $ $ $ $ $ $ 1.~.v.V V e a E UXUXUXUXUXUX", +"UXUXUXUXUXUXUXUXUXUXn Q M M M M M M M M M M M M A '.$ $ $ $ $ $ $ $ 1.'.v.1 I a E UXUXUXUXUXUXUX", +"UXUXUXUXUXUXUXUXUXUXl N.$ 1.1.1.1.1.1.1.1.1.1.1.1.1.$ $ $ $ $ $ $ $ $ i.~.sXa E UXUXUXUXUXUXUXUX", +"UXUXUXUXUXUXUXUXUXUX5 . =X$ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ =XA Y.E UXUXUXUXUXUXUXUXUX", +"UXUXUXUXUXUXUXUXUXUX,X. $ 1.1.1.1.1.1.1.1.$ $ $ $ $ $ $ $ $ $ $ $ $ $ i.r E UXUXUXUXUXUXUXUXUXUX", +"UXUXUXUXUXUXUXUXUXUXj jXy ^ x :X) N.5.. r.Z.E.,.,.{.h.l._._.| | 1.$ $ T.$XUXUXUXUXUXUXUXUXUXUXUX", +"UXUXUXUXUXUXUXUXUXUX>Xz z PXPX&Xq @X@X&.&.+ + R R r r 6.6.X.X.X.k k k r UXUXUXUXUXUXUXUXUXUXUXUX", +"UXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUX", +"UXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUX" +}; diff --git a/office/djvusmooth/doinst.sh b/office/djvusmooth/doinst.sh new file mode 100644 index 0000000000000..5fb28930db0b9 --- /dev/null +++ b/office/djvusmooth/doinst.sh @@ -0,0 +1,3 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi diff --git a/office/djvusmooth/slack-desc b/office/djvusmooth/slack-desc new file mode 100644 index 0000000000000..c0f326237075e --- /dev/null +++ b/office/djvusmooth/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 ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +djvusmooth: djvusmooth (graphical editor for DjVu documents) +djvusmooth: +djvusmooth: djvusmooth is a graphical editor for DjVu files, which allows one to: +djvusmooth: +djvusmooth: - edit document metadata, +djvusmooth: - edit document outline (bookmarks), +djvusmooth: - add, remove or edit hyperlinks, +djvusmooth: - correct occasional errors in the hidden text layer. +djvusmooth: +djvusmooth: +djvusmooth: |