jobextra/multipath-tools/PKGBUILD

62 lines
1.5 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=multipath-tools
_tag='6bb7330fca4a85c4f5abab0f9de5bd3519923f0a' # git rev-parse ${pkgver}
pkgver=0.9.7
pkgrel=04
pkgdesc='Multipath tools for Linux (including kpartx) w/o systemd'
#url='http://christophe.varoqui.free.fr/'
url='https://github.com/opensvc/multipath-tools'
depends=('libaio' 'device-mapper' 'json-c' 'liburcu')
makedepends=('git')
source=("multipath-tools::git+https://github.com/opensvc/multipath-tools#tag=${_tag}")
#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 \
prefix='/usr/' \
bindir='/usr/bin' \
LIB='lib' \
FORTIFY_OPT=''
}
package() {
cd "${pkgname}"
make -j1 \
DESTDIR="${pkgdir}" \
prefix='/usr/' \
bindir='/usr/bin' \
LIB='lib' \
install
install -D -m0644 -t "${pkgdir}/usr/share/doc/${pkgname}" README*
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=(GPL2)
sha256sums=(SKIP)
## 06989e4fde2df2092ccb9885a2c4bacc76dc921411a401ff2e4abe3a0034729a multipath-tools-0.9.7-04-x86_64.pkg.tar.lz