diff options
author | Donald Webster | 2019-02-28 09:53:29 -0800 |
---|---|---|
committer | Donald Webster | 2019-02-28 09:53:29 -0800 |
commit | 383d677c029b333118e154feecafb4e6ba1d11d4 (patch) | |
tree | 7ece86719adad1f1a4a032fa0fdd2d75f36f31df | |
parent | b410a05f47e9a4991073c782dcb4e7d7472100d1 (diff) | |
download | aur-383d677c029b333118e154feecafb4e6ba1d11d4.tar.gz |
Copy the default config file into place.
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 13 |
2 files changed, 8 insertions, 7 deletions
@@ -1,7 +1,7 @@ pkgbase = sonarrannounced-git pkgdesc = Manage and download subtitles for Sonarr and Radarr. pkgver = r110.57c6c87 - pkgrel = 3 + pkgrel = 4 url = https://github.com/l3uddz/sonarrAnnounced arch = any license = GPL3 @@ -2,7 +2,7 @@ pkgname=sonarrannounced-git pkgver=r110.57c6c87 -pkgrel=3 +pkgrel=4 pkgdesc="Manage and download subtitles for Sonarr and Radarr." arch=('any') url="https://github.com/l3uddz/sonarrAnnounced" @@ -20,6 +20,7 @@ depends=('python' 'python-pythreadworker') makedepends=('git') + source=("git+https://github.com/l3uddz/sonarrAnnounced" 'sonarrannounced.service' 'sonarrannounced.sysusers' @@ -38,15 +39,15 @@ pkgver() { package() { install -d -m 755 "${pkgdir}/usr/lib/sonarrannounced" - # Remove .git folder. - #rm -rf "${srcdir}/sonarrAnnounced/.git" - - # Remove unneeded systemd service file + # Remove unneeded systemd service file. rm -rf "${srcdir}/sonarrAnnounced/systemd" - + # Copy the guts into place. cp -dpr --no-preserve=ownership "${srcdir}/sonarrAnnounced/"* "${pkgdir}/usr/lib/sonarrannounced" + # Copy the default settings file to the correct name. + cp -dp --no-preserve=ownership "${srcdir}/sonarrAnnounced/settings.cfg.default" "${pkgdir}/usr/lib/sonarrannounced/settings.cfg" + install -D -m 644 "${srcdir}/sonarrannounced.service" "${pkgdir}/usr/lib/systemd/system/sonarrannounced.service" install -D -m 644 "${srcdir}/sonarrannounced.sysusers" "${pkgdir}/usr/lib/sysusers.d/sonarrannounced.conf" install -D -m 644 "${srcdir}/sonarrannounced.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/sonarrannounced.conf" |