mirror of
https://git.sapphirus.org/AUR/pacwrap-git.git
synced 2024-11-23 23:06:27 +00:00
Formatting
This commit is contained in:
parent
965aa961b2
commit
bc7d77fa4f
1 changed files with 45 additions and 32 deletions
77
PKGBUILD
77
PKGBUILD
|
@ -9,55 +9,68 @@ pkgdesc="Facilitates the creation, management, and execution of unprivileged Arc
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url="https://pacwrap.sapphirus.org/"
|
url="https://pacwrap.sapphirus.org/"
|
||||||
license=('GPLv3-only')
|
license=('GPLv3-only')
|
||||||
makedepends=('cargo' 'busybox' 'fakechroot' 'fakeroot' 'git' 'libalpm.so>=14' 'pacman' 'zstd')
|
|
||||||
source=("$_pkgname::git+https://github.com/pacwrap/pacwrap.git")
|
source=("$_pkgname::git+https://github.com/pacwrap/pacwrap.git")
|
||||||
|
makedepends=('cargo'
|
||||||
|
'busybox'
|
||||||
|
'fakechroot'
|
||||||
|
'fakeroot'
|
||||||
|
'git'
|
||||||
|
'libalpm.so=15'
|
||||||
|
'pacman'
|
||||||
|
'zstd')
|
||||||
md5sums=('SKIP')
|
md5sums=('SKIP')
|
||||||
options=('!lto')
|
options=('!lto')
|
||||||
|
|
||||||
pkgver() {
|
pkgver() {
|
||||||
cd $_pkgbase
|
cd $_pkgbase
|
||||||
echo "$(git describe --tags | sed 's/^v//; s/-/.r/; s/-g/./')"
|
echo "$(git describe --tags | sed 's/^v//; s/-/.r/; s/-g/./')"
|
||||||
}
|
}
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cd "${_pkgbase}"
|
cd "${_pkgbase}"
|
||||||
cargo fetch --locked --target "$CARCH-unknown-linux-gnu" \
|
cargo fetch --locked --target "$CARCH-unknown-linux-gnu" \
|
||||||
&& ./dist/tools/prepare.sh release
|
&& ./dist/tools/prepare.sh release
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "${_pkgbase}"
|
cd "${_pkgbase}"
|
||||||
PACWRAP_SCHEMA_BUILT=1 \
|
PACWRAP_SCHEMA_BUILT=1 \
|
||||||
cargo build --release --frozen \
|
cargo build --release --frozen \
|
||||||
&& ./dist/tools/package.sh release
|
&& ./dist/tools/package.sh release
|
||||||
}
|
}
|
||||||
|
|
||||||
package_pacwrap-git() {
|
package_pacwrap-git() {
|
||||||
provides=("${_pkgname}")
|
provides=("${_pkgname}")
|
||||||
conflicts=("${_pkgname}")
|
conflicts=("${_pkgname}")
|
||||||
depends=('bash' 'bubblewrap' 'gnupg' 'libalpm.so>=14' 'libseccomp' 'pacman' "pacwrap-dist-git=$pkgver" 'zstd')
|
depends=('bash'
|
||||||
optdepends=('xdg-dbus-proxy')
|
'bubblewrap'
|
||||||
|
'gnupg'
|
||||||
|
'libalpm.so>=14'
|
||||||
|
'libseccomp'
|
||||||
|
'pacman'
|
||||||
|
"pacwrap-dist-git=$pkgver"
|
||||||
|
'zstd')
|
||||||
|
optdepends=('xdg-dbus-proxy')
|
||||||
|
|
||||||
cd "${_pkgbase}"
|
cd "${_pkgbase}"
|
||||||
|
install -d "${pkgdir}/usr/share/${_pkgname}"
|
||||||
install -d "${pkgdir}/usr/share/${_pkgname}"
|
install -Dm 755 "target/release/${_pkgname}" "${pkgdir}/usr/bin/${_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 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}.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 "dist/bin/${_pkgname}.yml.2" "${pkgdir}/usr/share/man/man2/${_pkgname}.yml.2"
|
install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
|
||||||
install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
package_pacwrap-dist-git() {
|
package_pacwrap-dist-git() {
|
||||||
provides=("${_pkgname}-dist")
|
provides=("${_pkgname}-dist")
|
||||||
conflicts=("${_pkgname}-dist")
|
conflicts=("${_pkgname}-dist")
|
||||||
|
|
||||||
cd "${_pkgbase}"
|
cd "${_pkgbase}"
|
||||||
|
install -dD 755 "${pkgdir}/usr/share/${_pkgname}/"
|
||||||
install -dD 755 "${pkgdir}/usr/share/${_pkgname}/"
|
install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}-dist/LICENSE"
|
||||||
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.tar.zst" "${pkgdir}/usr/share/${_pkgname}/filesystem.tar.zst"
|
install -Dm 644 "dist/bin/filesystem.dat" "${pkgdir}/usr/share/${_pkgname}/filesystem.dat"
|
||||||
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
|
||||||
|
|
Loading…
Reference in a new issue