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

Morten Linderud foxboron at archlinux.org
Mon Aug 17 16:08:57 UTC 2020


    Date: Monday, August 17, 2020 @ 16:08:56
  Author: foxboron
Revision: 682781

archrelease: copy trunk to community-x86_64

Added:
  containerd/repos/community-x86_64/PKGBUILD
    (from rev 682780, containerd/trunk/PKGBUILD)
Deleted:
  containerd/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   97 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 49 insertions(+), 48 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-08-17 16:08:48 UTC (rev 682780)
+++ PKGBUILD	2020-08-17 16:08:56 UTC (rev 682781)
@@ -1,48 +0,0 @@
-# Maintainer: Morten Linderud <foxboron at archlinux.org>
-# Maintainer: Santiago Torres-Arias <santiago at archlinux.org>
-# Contributor: Sébastien "Seblu" Luttringer
-# Contributor: Iwan Timmer <irtimmer at gmail.com>
-
-pkgname=containerd
-pkgver=1.3.4
-_commit=d76c121f76a5fc8a462dc64594aea72fe18e1178
-pkgrel=2
-pkgdesc='An open and reliable container runtime'
-url='https://containerd.io/'
-depends=('runc')
-makedepends=('go' 'git' 'btrfs-progs' 'libseccomp')
-arch=('x86_64')
-license=("Apache")
-source=("$pkgname-$pkgver.tar.gz::https://github.com/containerd/containerd/archive/v$pkgver.tar.gz")
-sha256sums=('374d0c944985a64a7f31da4018aaa6d7a0b123122633ce28ab04cf1203f785b8')
-
-# bbolt 1.3.3 is broken with go 1.14 and 1.3.4 is unstable:
-# https://github.com/etcd-io/bbolt/issues/214
-
-prepare() {
-  mkdir -p src/github.com/containerd
-  ln -rTsf $pkgname-$pkgver src/github.com/containerd/containerd
-
-  # fix paths in service
-  sed -i 's,/sbin,/usr/bin,;s,/usr/local,/usr,' $pkgname-$pkgver/containerd.service
-}
-
-build() {
-  export GOPATH="$srcdir"
-  cd src/github.com/containerd/containerd
-  export CGO_LDFLAGS="$LDFLAGS"
-  export GOFLAGS="-trimpath"
-  make VERSION=v$pkgver.m REVISION=$_commit.m
-}
-
-check() {
-  cd src/github.com/containerd/containerd
-  make test
-}
-
-package() {
-  export GOPATH="$srcdir"
-  cd src/github.com/containerd/containerd
-  make install DESTDIR="$pkgdir/usr"
-  install -Dm644 containerd.service "$pkgdir"/usr/lib/systemd/system/containerd.service
-}

Copied: containerd/repos/community-x86_64/PKGBUILD (from rev 682780, containerd/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-08-17 16:08:56 UTC (rev 682781)
@@ -0,0 +1,49 @@
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+# Maintainer: Santiago Torres-Arias <santiago at archlinux.org>
+# Contributor: Sébastien "Seblu" Luttringer
+# Contributor: Iwan Timmer <irtimmer at gmail.com>
+
+pkgname=containerd
+pkgver="1.4.0"
+_commit=be75852b8d7849474a20192f9ed1bf34fdd454f1
+pkgrel=1
+pkgdesc='An open and reliable container runtime'
+url='https://containerd.io/'
+depends=('runc')
+makedepends=('go' 'git' 'btrfs-progs' 'libseccomp')
+arch=('x86_64')
+license=("Apache")
+source=("$pkgname-$pkgver.tar.gz::https://github.com/containerd/containerd/archive/v$pkgver.tar.gz")
+sha256sums=('d6284c69e1933e4c05fe285feebef461efe8cd2030634dcf1cbdcde46abe86be')
+
+prepare() {
+  mkdir -p src/github.com/containerd
+  ln -rTsf $pkgname-$pkgver src/github.com/containerd/containerd
+
+  # fix paths in service
+  sed -i 's,/sbin,/usr/bin,;s,/usr/local,/usr,' $pkgname-$pkgver/containerd.service
+}
+
+build() {
+  export GOPATH="$srcdir"
+  cd src/github.com/containerd/containerd
+  export CGO_LDFLAGS="$LDFLAGS"
+  export CGO_CPPFLAGS="${CPPFLAGS}"
+  export CGO_CFLAGS="${CFLAGS}"
+  export CGO_CXXFLAGS="${CXXFLAGS}"
+  export CGO_LDFLAGS="${LDFLAGS}"
+  export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
+  make EXTRA_LDFLAGS="-linkmode external" VERSION=v$pkgver.m REVISION=$_commit.m
+}
+
+check() {
+  cd src/github.com/containerd/containerd
+  GOFLAGS="" make test
+}
+
+package() {
+  export GOPATH="$srcdir"
+  cd src/github.com/containerd/containerd
+  make install DESTDIR="$pkgdir/usr"
+  install -Dm644 containerd.service "$pkgdir"/usr/lib/systemd/system/containerd.service
+}



More information about the arch-commits mailing list