installer script: package (14)

This commit is contained in:
Daniel Langbein 2021-05-03 16:41:33 +02:00
parent 0897da627a
commit c7cb22732c
3 changed files with 13 additions and 8 deletions

View File

@ -26,5 +26,11 @@ sha256sums=('SKIP')
package() { package() {
cd "${_reponame}/pkg/${pkgname}" cd "${_reponame}/pkg/${pkgname}"
install -Dm0555 de-p1st-installer.sh "$pkgdir"/usr/bin/de-p1st-installer install -Dm0544 de-p1st-installer.sh "$pkgdir"/usr/bin/"${pkgname}"
install -Dm0644 lib/block-device.sh "$pkgdir"/usr/lib/"${pkgname}"/block-device.sh
install -Dm0644 lib/user-input.sh "$pkgdir"/usr/lib/"${pkgname}"/user-input.sh
install -Dm0644 lib/util.sh "$pkgdir"/usr/lib/"${pkgname}"/util.sh
install -Dm0644 -o0 installer.cfg "$pkgdir"/etc/"${pkgname}"/installer.cfg
} }

View File

@ -1,12 +1,12 @@
#!/bin/bash #!/bin/bash
# load config # load config
source installer.cfg || { exit 1; } source /etc/de-p1st-installer/installer.cfg || { exit 1; }
# load functions # load functions
source lib/util.sh || { exit 1; } source /usr/lib/de-p1st-installer/util.sh || { exit 1; }
source lib/user-input.sh || { exit 1; } source /usr/lib/de-p1st-installer/user-input.sh || { exit 1; }
source lib/block-device.sh || { exit 1; } source /usr/lib/de-p1st-installer/block-device.sh || { exit 1; }
function check_network() { function check_network() {

View File

@ -2,7 +2,7 @@
_pkgname=repo _pkgname=repo
_reponame=arch _reponame=arch
pkgname="de-p1st-$_pkgname" pkgname="de-p1st-$_pkgname"
pkgver=0.1.6 pkgver=0.1.7
pkgrel=1 pkgrel=1
pkgdesc="Bash script to manage remote Arch Linux repository" pkgdesc="Bash script to manage remote Arch Linux repository"
arch=('any') arch=('any')
@ -30,6 +30,5 @@ package() {
install -Dm0555 arch-repo-receive-new.sh "$pkgdir"/usr/bin/arch-repo-receive-new install -Dm0555 arch-repo-receive-new.sh "$pkgdir"/usr/bin/arch-repo-receive-new
install -Dm0555 arch-repo-vercmp.sh "$pkgdir"/usr/bin/arch-repo-vercmp install -Dm0555 arch-repo-vercmp.sh "$pkgdir"/usr/bin/arch-repo-vercmp
install -Dm0644 arch-repo.cfg "$pkgdir"/etc/de-p1st-repo/arch-repo.cfg install -Dm0644 -o0 arch-repo.cfg "$pkgdir"/etc/de-p1st-repo/arch-repo.cfg
chown 0:0 "$pkgdir"/etc/de-p1st-repo/arch-repo.cfg
} }