summaryrefslogtreecommitdiff
path: root/pcr/multipath-tools/PKGBUILD
blob: 906f118f3525a669598fad75dc36531e4b22b7e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Maintainer (AUR):  Michael Lass <bevan@bi-co.net>
# Contributor (AUR): Justin Dray <justin@dray.be>
# Contributor (AUR): Patrick McCarty <pnorcks at gmail dot com>
# Contributor (AUR): Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
# Contributor (AUR): Thomas S Hatch <thatch45 ar gmail dot com>
# Contributor (AUR): Michael P <ptchinster@archlinux.us>
# Contributor (AUR): Matt Heagney <matt@heagney.com>

# This PKGBUILD is maintained on github:
# https://github.com/michaellass/AUR

# parabola changes and rationale:
#  - removed buildtime optdepends

pkgname=multipath-tools
pkgver=0.7.4
pkgrel=1
pkgdesc='Multipath tools for Linux (including kpartx)'
arch=('i686' 'x86_64' 'armv7h')
url="http://christophe.varoqui.free.fr/"
license=('GPL2')
depends=('libaio' 'device-mapper' 'json-c' 'liburcu')
makedepends=('git')
conflicts=('multipath-tools-git')
install=multipath-tools.install
source=("multipath-tools::git+http://git.opensvc.com/multipath-tools/.git#tag=${pkgver}")
sha256sums=('SKIP')

prepare() {
  cd  "${srcdir}/${pkgname}"

  # Fix bindir in Makefile
  sed -i 's|$(exec_prefix)/sbin|$(exec_prefix)/bin|g' Makefile.inc
}

build() {
  cd  "${srcdir}/${pkgname}"
  make
}

package() {
  cd "${srcdir}/${pkgname}"

  make \
       DESTDIR="${pkgdir}" \
       exec_prefix="/usr" \
       LIB="/usr/lib" \
       install
}