[arch-commits] Commit in toolbox/repos (community-x86_64 community-x86_64/PKGBUILD)

Morten Linderud foxboron at archlinux.org
Sat May 16 11:45:04 UTC 2020


    Date: Saturday, May 16, 2020 @ 11:45:03
  Author: foxboron
Revision: 628172

archrelease: copy trunk to community-x86_64

Added:
  toolbox/repos/community-x86_64/
  toolbox/repos/community-x86_64/PKGBUILD
    (from rev 628171, toolbox/trunk/PKGBUILD)

----------+
 PKGBUILD |   34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

Copied: toolbox/repos/community-x86_64/PKGBUILD (from rev 628171, toolbox/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2020-05-16 11:45:03 UTC (rev 628172)
@@ -0,0 +1,34 @@
+# Maintainer: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+
+pkgname=toolbox
+pkgver=0.0.90
+pkgrel=1
+pkgdesc='Unprivileged development environment'
+arch=(x86_64)
+url='https://github.com/containers/toolbox'
+license=(APACHE)
+depends=(podman bash)
+makedepends=(go shellcheck go-md2man bash-completion ninja git meson)
+_commit=1e3d25c426920a7f8bf116ca08811ac752763f11 # tags/0.0.90^0
+source=("git+$url#commit=$_commit")
+sha256sums=('SKIP')
+
+pkgver() {
+  cd toolbox
+  git describe --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+  export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
+  export CGO_LDFLAGS="${LDFLAGS}"
+  export CGO_CFLAGS="${CFLAGS}"
+  export CGO_CPPFLAGS="${CPPFLAGS}"
+  export CGO_CXXFLAGS="${CXXFLAGS}"
+  arch-meson toolbox build -D profile_dir=/etc/profile.d
+  ninja -C build
+}
+
+package() {
+  DESTDIR="$pkgdir" ninja -C build install
+}


More information about the arch-commits mailing list