Advertisement
lablanu

add shortcut for VPaint

Dec 18th, 2015
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.39 KB | None | 0 0
  1. # Maintainer: TheNiceGuy <gabrielpolloguilbert@gmail.com>
  2. # Contributor: Tanel Tagaväli <tanel58@hotmail.com>
  3.  
  4. pkgname=vpaint
  5. pkgver=1.5
  6. pkgrel=1
  7. pkgdesc='VPaint is an experimental vector graphics editor based on the Vector Animation Complex technology.'
  8. arch=('i686' 'x86_64')
  9. license=('MIT')
  10. depends=('qt4' 'glu' 'qt5-base' 'libxkbcommon-x11')
  11. makedepends=('gcc' 'make' 'qtchooser' 'icoutils')
  12. url='http://www.vpaint.org'
  13. conflicts=('vpaint-git')
  14. provides=()
  15. source=("https://github.com/dalboris/vpaint/archive/v$pkgver.tar.gz")
  16. md5sums=('aee4b49c9a9a0345a1d98d734a008b7d')
  17. options=()
  18.  
  19. build() {
  20.     icotool -x -o $srcdir/vpaint.png $srcdir/$pkgname-$pkgver/src/VPaint.ico
  21.  
  22.     mkdir -p "$srcdir/$pkgname-$pkgver/build"
  23.     cd       "$srcdir/$pkgname-$pkgver/build"
  24.  
  25.     export CXXFLAGS="$CXXFLAGS -fPIC"
  26.     export QT_SELECT=5
  27.  
  28.     qmake ../src/VPaint.pro -r -spec linux-g++
  29.     make
  30. }
  31.  
  32. package() {
  33.     mkdir -p "$pkgdir/usr/bin"
  34.  
  35.     install -Dm755 "$srcdir/$pkgname-$pkgver/build/VPaint" "$pkgdir/usr/bin/vpaint"
  36.  
  37.     install -Dm644 "$srcdir/vpaint.png" "$pkgdir/usr/share/pixmaps/vpaint.png"
  38.     gendesk -f --pkgname="$pkgname" --pkgdesc="Vector graphics editor" --name="VPaint" --comment="Start VPaint" --exec="$pkgname" --categories="Graphics" --custom="Icon=/usr/share/pixmaps/vpaint.png"
  39.     install -Dm644 "vpaint.desktop" "$pkgdir/usr/share/applications/vpaint.desktop"
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement