From 9ac4e5aa7070c6f3efb986509d5da8d31274cd5b Mon Sep 17 00:00:00 2001 From: Xavier Moffett Date: Fri, 8 Nov 2024 19:09:09 -0500 Subject: [PATCH] Formatting --- PKGBUILD | 67 ++++++++++++++++++++++++++++++++++---------------------- 1 file changed, 41 insertions(+), 26 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index dc2eaa6..23604a3 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -4,49 +4,64 @@ _pkgname=pacwrap pkgname=('pacwrap' 'pacwrap-dist') pkgver=0.8.6 pkgrel=1 -pkgdesc="Facilitates the creation, management, and execution of unprivileged Arch-based bubblewrap containers." +pkgdesc="A package manager which facilitates Arch-based bubblewrap containers." arch=('x86_64') url="https://pacwrap.sapphirus.org/" license=('GPLv3-only') -makedepends=('cargo' 'busybox' 'fakechroot' 'fakeroot' 'git' 'libalpm.so=15' 'pacman' 'zstd') source=("$_pkgname::git+https://github.com/pacwrap/pacwrap.git#tag=${pkgver}") +makedepends=('cargo' + 'busybox' + 'fakechroot' + 'fakeroot' + 'git' + 'libalpm.so=15' + 'zstd') md5sums=('SKIP') options=('!lto') prepare() { - cd "${_pkgname}" - cargo fetch --locked --target "$CARCH-unknown-linux-gnu" \ - && ./dist/tools/prepare.sh release + cd "${_pkgname}" + cargo fetch --locked --target "$CARCH-unknown-linux-gnu" \ + && ./dist/tools/prepare.sh release } build() { - cd "${_pkgname}" - PACWRAP_SCHEMA_BUILT=1 \ - cargo build --release --frozen \ - && ./dist/tools/package.sh release + cd "${_pkgname}" + PACWRAP_SCHEMA_BUILT=1 \ + cargo build --release --frozen \ + && ./dist/tools/package.sh release } package_pacwrap() { - depends=('bash' 'bubblewrap' 'gnupg' 'libalpm.so=15' 'libseccomp' 'pacman' "pacwrap-dist=$pkgver" 'zstd') - optdepends=('xdg-dbus-proxy') - - cd "${_pkgname}" - - install -d "${pkgdir}/usr/share/${_pkgname}" - install -Dm 755 "target/release/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}" - install -Dm 755 "dist/bin/${_pkgname}-key" "${pkgdir}/usr/bin/${_pkgname}-key" - install -Dm 644 "dist/bin/${_pkgname}.1" "${pkgdir}/usr/share/man/man1/${_pkgname}.1" - install -Dm 644 "dist/bin/${_pkgname}.yml.2" "${pkgdir}/usr/share/man/man2/${_pkgname}.yml.2" - install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE" + depends=('bash' + 'bubblewrap' + 'gnupg' + 'libalpm.so=15' + 'libseccomp' + 'pacman' + "pacwrap-dist=$pkgver" + 'zstd') + optdepends=('xdg-dbus-proxy') + + cd "${_pkgname}" + + install -d "${pkgdir}/usr/share/${_pkgname}" + install -Dm 755 "target/release/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}" + install -Dm 755 "dist/bin/${_pkgname}-key" "${pkgdir}/usr/bin/${_pkgname}-key" + install -Dm 644 "dist/bin/${_pkgname}.1" "${pkgdir}/usr/share/man/man1/${_pkgname}.1" + install -Dm 644 "dist/bin/${_pkgname}.yml.2" "${pkgdir}/usr/share/man/man2/${_pkgname}.yml.2" + install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE" } package_pacwrap-dist() { - cd "${_pkgname}" + cd "${_pkgname}" - install -dD 755 "${pkgdir}/usr/share/${_pkgname}/" - install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}-dist/LICENSE" - install -Dm 644 "dist/bin/filesystem.tar.zst" "${pkgdir}/usr/share/${_pkgname}/filesystem.tar.zst" - install -Dm 644 "dist/bin/filesystem.dat" "${pkgdir}/usr/share/${_pkgname}/filesystem.dat" + install -dD 755 "${pkgdir}/usr/share/${_pkgname}/" + install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}-dist/LICENSE" + install -Dm 644 "dist/bin/filesystem.tar.zst" "${pkgdir}/usr/share/${_pkgname}/filesystem.tar.zst" + install -Dm 644 "dist/bin/filesystem.dat" "${pkgdir}/usr/share/${_pkgname}/filesystem.dat" - cp -r "dist/runtime" "${pkgdir}/usr/share/${_pkgname}/" + cp -r "dist/runtime" "${pkgdir}/usr/share/${_pkgname}/" } + +# vim:set ts=4 sw=4 et:1