# vim:set ft=sh: # Maintainer (Arch): BlackIkeEagle # Contributor (Arch): (sirocco AT ngs.ru) # Contributor: André Silva # parabola changes and rationale: # - removed libunrar support pkgbase=doublecmd pkgname=('doublecmd-gtk2' 'doublecmd-qt5') pkgver=0.9.0 pkgrel=2 pkgrel+=.parabola1 url="http://doublecmd.sourceforge.net/" arch=('x86_64') arch+=('i686' 'armv7h') license=('GPL') provides=("$pkgbase") makedepends=('lazarus' 'qt5pas' 'gtk2') optdepends=( 'lua: scripting' 'unzip: support extracting zip archives' 'zip: suport packing zip archives' 'p7zip: support for 7zip archives' ) source=( "https://downloads.sourceforge.net/project/$pkgbase/Double%20Commander%20Source/$pkgbase-$pkgver-src.tar.gz" "libre.patch" ) sha512sums=('79dc348d9b44581cf353e5f6de2a56aa858d22429a6e66b40cff4269ebb34c4d8e5f5c3c5c07fb8779106c0486a938360198af78633b0aec170fb9b9249841e8' '874a81b27d891cff3eefc8ed6aa128b4eb4abeb4e69247108544a60cda9a3f98b552196a8414d4835d358a426d74ff10823610acf605d3a4d5651f6c9dd3dcfa') prepare() { cp -a /usr/lib/lazarus ./ cd "$pkgbase-$pkgver" sed -e 's/LIB_SUFFIX=.*/LIB_SUFFIX=/g' -i install/linux/install.sh sed -e "s@=\$(which lazbuild)@=\"\$(which lazbuild) --lazarusdir=$srcdir/lazarus\"@" -i build.sh msg2 'remove nonfree libunrar, unace, unarj support and references' rm -rv plugins/wcx/unrar rm -rv install/linux/deb/libunrar rm -v install/linux/rpm/libunrar.spec rm -v install/darwin/make-unrar.sh patch -Np1 -i "$srcdir"/libre.patch cd "$srcdir" cp -a "$pkgbase-$pkgver" "$pkgbase-gtk" cp -a "$pkgbase-$pkgver" "$pkgbase-qt5" } build() { msg2 'build gtk' cd "$srcdir/$pkgbase-gtk" ./build.sh beta gtk2 msg2 'build qt5' cd "$srcdir/$pkgbase-qt5" ./build.sh beta qt5 } package_doublecmd-gtk2() { pkgdesc="twin-panel (commander-style) file manager (GTK2)" pkgdesc+=", without nonfree decompression engine for RAR archives and support for nonfree unace and unarj" depends=('gtk2' 'desktop-file-utils' 'hicolor-icon-theme' 'shared-mime-info') conflicts=('doublecmd-qt5') cd "$srcdir/$pkgbase-gtk" ./install/linux/install.sh --install-prefix="$pkgdir" } package_doublecmd-qt5() { pkgdesc="twin-panel (commander-style) file manager (Qt5)" pkgdesc+=", without nonfree decompression engine for RAR archives and support for nonfree unace and unarj" depends=('qt5pas' 'desktop-file-utils' 'hicolor-icon-theme' 'shared-mime-info') conflicts=('doublecmd-gtk2') replaces=('doublecmd-qt' 'doublecmd-qt4') cd "$srcdir/$pkgbase-qt5" ./install/linux/install.sh --install-prefix="$pkgdir" }