blob: 059cee7132a80b51336da146fa384ceacdf1ed52 (
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
|
# Maintainer: Konstantin Shalygin <k0ste@k0ste.ru>
# Contributor: Konstantin Shalygin <k0ste@k0ste.ru>
pkgname='mstflint'
pkgver='4.30.0.0'
_pkgver='4.30.0-1'
pkgrel='1'
pkgdesc='Open source version of MFT (Mellanox Firmware Tools)'
arch=('x86_64' 'aarch64')
url="https://github.com/Mellanox/${pkgname}"
license=('GPL2' 'custom:"OpenIB.org BSD"')
depends=('python' 'iniparser' 'openssl' 'libxml2' 'libidn2' 'libpsl'
'libunistring' 'zlib' 'xz' 'icu' 'keyutils' 'brotli' 'sqlite'
'libxml2' 'jsoncpp' 'curl' 'libnghttp2')
makedepends=('rdma-core')
source=("${url}/archive/v${_pkgver}/${pkgname}-${_pkgver}.tar.gz")
sha256sums=('e4bc23f0512ecd3d6321bac9d80d4cca4f885b5264a12adbbc333c74b1baedae')
prepare() {
cd "${pkgname}-${_pkgver}"
./autogen.sh
autoreconf -fvi
./configure \
--prefix="/usr" \
--sbindir="/usr/bin" \
--libexecdir="/usr/lib" \
--sysconfdir="/etc" \
--localstatedir="/var/${pkgname}" \
--enable-fw-mgr \
--enable-xml2
}
build() {
cd "${pkgname}-${_pkgver}"
make
}
package() {
cd "${pkgname}-${_pkgver}"
make DESTDIR="${pkgdir}" install
install -Dm0644 "LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
install -Dm0644 "README" -t "${pkgdir}/usr/share/doc/${pkgname}"
}
|