Date: Thursday, January 17, 2019 @ 01:15:09
  Author: heftig
Revision: 423760

archrelease: copy trunk to community-staging-x86_64

Added:
  wireguard-arch/repos/community-staging-x86_64/
  wireguard-arch/repos/community-staging-x86_64/PKGBUILD
    (from rev 423752, wireguard-arch/trunk/PKGBUILD)

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

Copied: wireguard-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
423752, wireguard-arch/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-01-17 01:15:09 UTC (rev 423760)
@@ -0,0 +1,32 @@
+# Maintainer: Christian Hesse <m...@eworm.de>
+
+pkgname='wireguard-arch'
+pkgver=0.0.20181218
+pkgrel=4
+_linux_major=4
+_linux_minor=20
+arch=('x86_64')
+url='https://www.wireguard.com/'
+license=('GPL')
+_linux_cur=${_linux_major}.${_linux_minor}
+_linux_next=${_linux_major}.$((_linux_minor + 1))
+makedepends=("linux>=$_linux_cur" "linux<$_linux_next"
+             "linux-headers>=$_linux_cur" "linux-headers<$_linux_next"
+             "wireguard-dkms>=$pkgver")
+
+_extramodules='extramodules-ARCH'
+
+package_wireguard-arch() {
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+  pkgdesc='Wireguard module for Arch Kernel'
+  license=('GPL')
+  depends=("linux>=$_linux_cur" "linux<$_linux_next")
+  conflicts=('wireguard-dkms')
+  provides=('WIREGUARD-MODULE')
+
+  cd "/var/lib/dkms/wireguard/${pkgver}/$_kernver/$CARCH/module"
+  install -Dt "$pkgdir/usr/lib/modules/$_extramodules" -m0644 *
+
+  # compress each module individually
+  find "$pkgdir" -name '*.ko' -exec xz -T1 {} +
+}

Reply via email to