SHARE
TWEET

PGKBUILD Edrawmax

arcolinux Oct 20th, 2018 368 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: kitech1 <vatic@vivaldi.net>
  2. pkgname=edrawmax
  3. pkgver=9.1
  4. pkgrel=1
  5. pkgmaver=9
  6. pkgmaname=EdrawMax
  7. epoch=
  8. pkgdesc="All-in-One Diagram Software"
  9. arch=('x86_64')
  10. url="http://www.edrawsoft.com/edrawmax/"
  11. license=('custom:"Copyright EdrawSoft 2004-2018; All Rights Reserved."')
  12. groups=()
  13. depends=(qt5-base)
  14. makedepends=()
  15. checkdepends=()
  16. optdepends=('gtk-engine-murrine')
  17. provides=()
  18. conflicts=()
  19. replaces=()
  20. backup=()
  21. options=(!strip)
  22. install=
  23. changelog=
  24. source=(https://www.edrawsoft.com/archives/$pkgname-$pkgmaver-64-en.tar.gz)
  25. md5sums=('f961b9b78b19b40a224a68fcfee170c5')
  26. noextract=()
  27.  
  28. prepare() {
  29.   line=37  # head -n 3 file.run to get the line
  30.   echo "Unpack bash binary..."
  31.   tail -n +$line $pkgmaname-$pkgmaver-64.run > $pkgname-$pkgver.tar.gz
  32.   rm -f $pkgmaname-$pkgmaver-64.run
  33. }
  34.  
  35. build() {
  36.   echo "Extracting files..."
  37.   tar zxf $pkgname-$pkgver.tar.gz
  38.   rm -f $pkgname-$pkgver.tar.gz
  39. }
  40.  
  41. check() {
  42.   cd "$srcdir/$pkgmaname-$pkgmaver"
  43. }
  44.  
  45. package() {
  46.   cd "$srcdir/$pkgmaname-$pkgmaver"
  47.   mkdir -p "$pkgdir/opt/$pkgmaname-$pkgmaver"
  48.   mv * "$pkgdir/opt/$pkgmaname-$pkgmaver/"
  49.  
  50.   cd "$pkgdir/opt/$pkgmaname-$pkgmaver"
  51.  
  52.   mkdir -p $pkgdir/usr/share/icon/
  53.   mkdir -p $pkgdir/usr/share/applications/
  54.   mkdir -p $pkgdir/usr/share/mime/packages/
  55.   mkdir -p $pkgdir/usr/share/icons/gnome/scalable/mimetypes/
  56.   mkdir -p $pkgdir/usr/bin/
  57.   cp -f edrawmax.png $pkgdir/usr/share/icons/
  58.   cp -f edrawmax.desktop $pkgdir/usr/share/applications/
  59.   cp -f edrawmax.xml $pkgdir/usr/share/mime/packages/
  60.   cp -f eddx.svg $pkgdir/usr/share/icons/gnome/scalable/mimetypes/
  61.   ln -f -s /opt/$pkgmaname-$pkgmaver/$pkgmaname $pkgdir/usr/bin/edrawmax
  62.  
  63.   # orignal package include qt 5.8, but archlinux's 5.9+ is also fine, and fix fcitx problem.
  64.   mv "lib" "lib.bak"
  65.   mkdir -p lib
  66.   cp -a ./lib.bak/libqtitanribbon.so* ./lib/
  67.   cp -a ./lib.bak/libBaseCore.so* ./lib/
  68.   cp -a ./lib.bak/libedgraphics.so* ./lib/
  69.   cp -a ./lib.bak/libObjectModule.so* ./lib/
  70.   cp -a ./lib.bak/libOSSC.so* ./lib/
  71.   cp -a ./lib.bak/libImporter.so* ./lib/
  72.   cp -a ./lib.bak/libExporter.so* ./lib/
  73.  
  74.   rm -fr ./lib.bak
  75.   rm -f qt.conf
  76.   rm -fr plugins
  77.   # rm -fr library sample  # big directory, uncomment for test
  78. }
  79.  
  80. # vim:set ts=2 sw=2 et:
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top