Add backup directive to PKGBUILD (#2704)

This way changes to the default config made by users are preserved if
polybar ever changes the default config

Ref: https://aur.archlinux.org/packages/polybar-git#comment-863283
This commit is contained in:
Patrick Ziegler 2022-04-30 23:03:00 +02:00 committed by GitHub
parent 6a2d7b5dde
commit f9fc02e69c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -14,6 +14,7 @@ depends=("libuv" "cairo" "xcb-util-image" "xcb-util-wm" "xcb-util-xrm"
optdepends=("i3-wm: i3 module support") optdepends=("i3-wm: i3 module support")
makedepends=("cmake" "git" "python" "pkg-config" "python-sphinx" makedepends=("cmake" "git" "python" "pkg-config" "python-sphinx"
"python-packaging" "i3-wm") "python-packaging" "i3-wm")
backup=("etc/polybar/config.ini")
provides=("polybar") provides=("polybar")
conflicts=("polybar") conflicts=("polybar")
source=("${_pkgname}::git+${url}.git") source=("${_pkgname}::git+${url}.git")

View File

@ -12,6 +12,7 @@ depends=("libuv" "cairo" "xcb-util-image" "xcb-util-wm" "xcb-util-xrm"
"jsoncpp" "curl") "jsoncpp" "curl")
optdepends=("i3-wm: i3 module support") optdepends=("i3-wm: i3 module support")
makedepends=("cmake" "python" "pkg-config" "python-sphinx" "python-packaging" "i3-wm") makedepends=("cmake" "python" "pkg-config" "python-sphinx" "python-packaging" "i3-wm")
backup=("etc/polybar/config.ini")
conflicts=("polybar-git") conflicts=("polybar-git")
source=(${url}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz) source=(${url}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz)
sha256sums=('73becc942e7d2418bc72bd194f2037a2a86792219fd561b663a8509fd5f547a0') sha256sums=('73becc942e7d2418bc72bd194f2037a2a86792219fd561b663a8509fd5f547a0')