diff options
author | Jan | 2019-12-07 14:21:18 +0100 |
---|---|---|
committer | Jan | 2019-12-07 14:21:18 +0100 |
commit | 4560eb52e83bc310842f4e9c70686e952e58e63f (patch) | |
tree | e277f68e0b38795826574af259dbe72c113baebe /PKGBUILD | |
parent | 10c51cb97e5fc62fcd578ec9fdd41614d79c56dc (diff) | |
download | aur-4560eb52e83bc310842f4e9c70686e952e58e63f.tar.gz |
Improvements to PKGBUILD and preparation script
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -3,7 +3,7 @@ pkgname=mcsctl-git pkgver=master commit=('d0729f6eca367a3b36ca8dbca7c62b28c4636ca8') -pkgrel=8 +pkgrel=9 pkgdesc='Manage multiple minecraft servers with a simple bash script and systemd unit template.' arch=('any') url='https://github.com/Hetsh/mcsctl' @@ -16,12 +16,13 @@ source=("$url/archive/$commit.tar.gz") sha256sums=('11dc0e82d0106e2cdd1ae57b054c88fc3d7163f8d95358ac84d6ee87776b8487') package() { - install -Dm 644 "${pkgname%-git}-$commit/mcs@.service" "$pkgdir/usr/lib/systemd/system/mcs@.service" - install -Dm 755 "${pkgname%-git}-$commit/mcsctl.sh" "$pkgdir/usr/bin/mcsctl" - install -Dm 644 "${pkgname%-git}-$commit/mcs-update@.timer" "$pkgdir/usr/lib/systemd/system/mcs-update@.timer" - install -Dm 644 "${pkgname%-git}-$commit/mcs-update@.service" "$pkgdir/usr/lib/systemd/system/mcs-update@.service" + work_dir="${pkgname%-git}-$commit" + install -Dm 644 "$work_dir/mcs@.service" "$pkgdir/usr/lib/systemd/system/mcs@.service" + install -Dm 755 "$work_dir/mcsctl.sh" "$pkgdir/usr/bin/mcsctl" + install -Dm 644 "$work_dir/mcs-update@.timer" "$pkgdir/usr/lib/systemd/system/mcs-update@.timer" + install -Dm 644 "$work_dir/mcs-update@.service" "$pkgdir/usr/lib/systemd/system/mcs-update@.service" # Generate an example config file from default options inside the mcsctl script - sed -n '/\# Mutable config/,/\# \/Mutable config/p' "${pkgname%-git}-$commit/mcsctl.sh" | head -n -1 | tail -n +2 > "${pkgname%-git}-$commit/mcsctl.conf.bak" - install -Dm 644 "${pkgname%-git}-$commit/mcsctl.conf.bak" "$pkgdir/etc/mcsctl.conf.bak" + sed -n '/\# Mutable config/,/\# \/Mutable config/p' "$work_dir/mcsctl.sh" | head -n -1 | tail -n +2 > "$work_dir/mcsctl.conf.bak" + install -Dm 644 "$work_dir/mcsctl.conf.bak" "$pkgdir/etc/mcsctl.conf.bak" }
\ No newline at end of file |