summaryrefslogtreecommitdiff
path: root/common.sh
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-11-11 06:39:57 +0000
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-11-11 06:39:57 +0000
commite6ab8cf5eb8cc9448af085b2bfc813aec614c22c (patch)
treea94527c45956e39c6be113c9a97c285dda62dcba /common.sh
parent3601b6b89aa18c52ff7b486f22faf7621fa636ab (diff)
replaces/conflicts
Diffstat (limited to 'common.sh')
-rw-r--r--common.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/common.sh b/common.sh
index 371b557..97aaf0e 100644
--- a/common.sh
+++ b/common.sh
@@ -1,6 +1,16 @@
pkgrel=1
arch=(any)
pkgname=$(basename "$BUILDFILE" .PKGBUILD)
+case "$pkgname" in
+ config-mgmt-*)
+ replaces=(${pkgname/-mgmt-/-})
+ conflicts=(${pkgname/-mgmt-/-})
+ ;;
+ config-box-*)
+ replaces=(${pkgname/-box-/-})
+ conflicts=(${pkgname/-box-/-})
+ ;;
+esac
pkgver() {
local oldpkgver oldpkgver_date oldpkgver_rel