[arch-commits] Commit in doublecmd/repos (3 files)

Felix Yan felixonmars at archlinux.org
Thu Nov 12 19:56:39 UTC 2020


    Date: Thursday, November 12, 2020 @ 19:56:39
  Author: felixonmars
Revision: 753694

archrelease: copy trunk to community-staging-x86_64

Added:
  doublecmd/repos/community-staging-x86_64/
  doublecmd/repos/community-staging-x86_64/PKGBUILD
    (from rev 753692, doublecmd/trunk/PKGBUILD)
  doublecmd/repos/community-staging-x86_64/doublecmd.install
    (from rev 753692, doublecmd/trunk/doublecmd.install)

-------------------+
 PKGBUILD          |   64 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 doublecmd.install |   34 +++++++++++++++++++++++++++
 2 files changed, 98 insertions(+)

Copied: doublecmd/repos/community-staging-x86_64/PKGBUILD (from rev 753692, doublecmd/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-11-12 19:56:39 UTC (rev 753694)
@@ -0,0 +1,64 @@
+# vim:set ft=sh:
+# Maintainer: BlackIkeEagle <ike DOT devolder AT gmail DOT com>
+# Contributor: (sirocco AT ngs.ru)
+
+pkgbase=doublecmd
+pkgname=('doublecmd-gtk2' 'doublecmd-qt5')
+pkgver=0.9.9
+pkgrel=3
+url="http://doublecmd.sourceforge.net/"
+arch=('x86_64')
+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'
+    'libunrar: support for rar archives'
+)
+source=(
+    "https://downloads.sourceforge.net/project/$pkgbase/Double%20Commander%20Source/$pkgbase-$pkgver-src.tar.gz"
+)
+sha512sums=('d574511d5a7169b80f96af0db2d9f5e44f0a8ee358d489dc6c3840770ec589e91c252df34e24e6a6f9fcb07832b62895166958a1e0e76f3f237945ea9bebfb98')
+
+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
+
+    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)"
+    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)"
+    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"
+}

Copied: doublecmd/repos/community-staging-x86_64/doublecmd.install (from rev 753692, doublecmd/trunk/doublecmd.install)
===================================================================
--- community-staging-x86_64/doublecmd.install	                        (rev 0)
+++ community-staging-x86_64/doublecmd.install	2020-11-12 19:56:39 UTC (rev 753694)
@@ -0,0 +1,34 @@
+update_icons() {
+
+	# Setup Menus
+	if which update-desktop-database
+	then
+		update-desktop-database -q /usr/share/applications > /dev/null 2>&1
+	fi
+
+	# Setup MIME types
+	if which update-mime-database
+	then
+		update-mime-database /usr/share/mime > /dev/null 2>&1
+	fi
+
+	# Setup Icons
+	touch -c /usr/share/icons/hicolor
+	if which gtk-update-icon-cache
+	then
+		gtk-update-icon-cache -tq /usr/share/icons/hicolor > /dev/null 2>&1
+	fi
+
+}
+
+post_install() {
+	update_icons
+}
+
+post_upgrade() {
+	update_icons
+}
+
+post_remove() {
+	update_icons
+}



More information about the arch-commits mailing list