diff options
author | Zhang Hai | 2015-12-04 12:22:47 +0800 |
---|---|---|
committer | Zhang Hai | 2015-12-04 12:23:11 +0800 |
commit | 9538cbef05f8067803e27b24daed32e563118e39 (patch) | |
tree | df72b737c0d2a5449c6ecdc62efbb5999ebdf779 /PKGBUILD | |
parent | 5b0498fa41a2a49f8e1268e6e4b90a1ebc64d375 (diff) | |
download | aur-9538cbef05f8067803e27b24daed32e563118e39.tar.gz |
Add backup; Tidy a bit.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -2,18 +2,19 @@ pkgname=tp-battery-mode pkgver=1.2.0 -pkgrel=1 +pkgrel=2 pkgdesc="Module to manage the battery mode (lifetime/runtime) of your Thinkpad" url="https://github.com/DreaminginCodeZH/tp-battery-mode" arch=('x86_64' 'i686') license=('GPL3') depends=('tpacpi-bat') -source=(https://github.com/DreaminginCodeZH/${pkgname}/archive/v${pkgver}.tar.gz) +backup=("etc/${pkgname}.conf") +source=("https://github.com/DreaminginCodeZH/${pkgname}/archive/v${pkgver}.tar.gz") sha256sums=('8186699a537c7675400526c670e09b0693637a44bf31beb23fd8be33e2eb5a0a') package() { - cd "$srcdir/${pkgname}-${pkgver}" - install -Dm755 "${pkgname}" "${pkgdir}/usr/bin/${pkgname}" - install -Dm644 "${pkgname}.conf" "${pkgdir}/etc/${pkgname}.conf" - install -Dm644 "${pkgname}.service" "${pkgdir}/usr/lib/systemd/system/${pkgname}.service" + cd "$srcdir/${pkgname}-${pkgver}" + install -Dm755 "${pkgname}" "${pkgdir}/usr/bin/${pkgname}" + install -Dm644 "${pkgname}.conf" "${pkgdir}/etc/${pkgname}.conf" + install -Dm644 "${pkgname}.service" "${pkgdir}/usr/lib/systemd/system/${pkgname}.service" } |