Date: Tuesday, February 2, 2021 @ 20:00:27
  Author: eworm
Revision: 841497

archrelease: copy trunk to community-staging-x86_64

Added:
  multipath-tools/repos/community-staging-x86_64/
  multipath-tools/repos/community-staging-x86_64/PKGBUILD
    (from rev 841496, multipath-tools/trunk/PKGBUILD)

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

Copied: multipath-tools/repos/community-staging-x86_64/PKGBUILD (from rev 
841496, multipath-tools/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-02-02 20:00:27 UTC (rev 841497)
@@ -0,0 +1,49 @@
+# Maintainer: Robin Broda <[email protected]>
+# Contributor: Michael Lass <[email protected]>
+# Contributor: Justin Dray <[email protected]>
+# Contributor: Patrick McCarty <pnorcks at gmail dot com>
+# Contributor: BartÅ‚omiej Piotrowski <[email protected]>
+# Contributor: Thomas S Hatch <thatch45 ar gmail dot com>
+# Contributor: Michael P <[email protected]>
+# Contributor: Matt Heagney <[email protected]>
+
+pkgname=multipath-tools
+_tag='eecfcba56c95128c9241e8a2abaa6166847fba9d' # git rev-parse ${pkgver}
+pkgver=0.8.5
+pkgrel=3
+pkgdesc='Multipath tools for Linux (including kpartx)'
+arch=('x86_64')
+url='http://christophe.varoqui.free.fr/'
+license=('GPL2')
+depends=('libaio' 'device-mapper' 'json-c' 'liburcu' 'systemd-libs')
+makedepends=('git' 'systemd')
+source=("multipath-tools::git+https://git.opensvc.com/multipath-tools/.git#tag=${_tag}";)
+sha256sums=('SKIP')
+
+prepare() {
+  cd "${pkgname}"
+
+  # Fix systemd version detection in Makefile
+  sed -i 's/sed -n .*$/head -n1 | cut -d" " -f2\)/g' Makefile.inc
+
+  # Fix bindir in Makefile
+  sed -i 's|$(exec_prefix)/sbin|$(exec_prefix)/bin|g' Makefile.inc
+}
+
+build() {
+  cd "${pkgname}"
+
+  make
+}
+
+package() {
+  cd "${pkgname}"
+
+  make -j1 \
+    DESTDIR="${pkgdir}" \
+    exec_prefix="/usr" \
+    LIB="/usr/lib" \
+    install
+
+  install -D -m0644 -t "${pkgdir}/usr/share/doc/${pkgname}" README*
+}

Reply via email to