Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
fixing name conflicts between bacula-bat-7.4.0-1 and alsa-utils-1.1.0-1
From 54acdd11ade12a5f62a98f3b486bea50336c30a5 Mon Sep 17 00:00:00 2001
From: "Vanush \"Misha\" Paturyan" <>
Date: Wed, 9 Mar 2016 09:52:07 +0000
Subject: [PATCH] resolving name conflict for /usr/bin/bat
alsa-utils-1.1.0-1 contains /usr/bin/bat and
/usr/share/man/man1/bacula-bat.1.gz files.
This commit installs bacula-bat's files as /usr/bin/bacula-bat and
PKGBUILD | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/PKGBUILD b/PKGBUILD
index 86c5a48..1ad439b 100644
@@ -139,11 +139,10 @@ package_bacula-bat() {
pushd "${_instdir}"
- cp --parents -a usr/bin/bat ${pkgdir}
+ install -D -m755 ${_instdir}/usr/bin/bat ${pkgdir}/usr/bin/bacula-bat
cp --parents -a etc/${pkgbase}/bat.conf ${pkgdir}
- cp --parents -a usr/share/man/man1/bat.1.gz ${pkgdir}
+ install -D -m644 ${_instdir}/usr/share/man/man1/bat.1.gz ${pkgdir}/usr/share/man/man1/bacula-bat.1.gz
- chmod 755 ${pkgdir}/etc/${pkgbase} ${pkgdir}/usr/bin/bat
chmod 644 ${pkgdir}/etc/${pkgbase}/bat.conf
mkdir -p ${pkgdir}/usr/share/applications ${pkgdir}/usr/share/pixmaps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.