#!/usr/bin/bash # JOBoRun : Jwm OpenBox Obarun RUNit # Maintainer : Joe Bo Run # PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname" # Website : https://pozol.eu #-----------------------------------------| DESCRIPTION |--------------------------------------- pkgname=mdadm pkgver=4.3 pkgrel=02 pkgdesc='A tool for managing/monitoring Linux md device arrays, also known as Software RAID w/o systemd' url='https://git.kernel.org/pub/scm/utils/mdadm' makedepends=('git') depends=('glibc') conflicts=('mkinitcpio<38') replaces=('raidtools') backup=('etc/mdadm.conf') optdepends=('bash: mdcheck') source=("git+https://git.kernel.org/pub/scm/utils/mdadm/mdadm.git#tag=${pkgname}-${pkgver}?signed" 'mdadm.conf') #prepare() { # cd mdadm # patch -Np0 -i ${srcdir}/disable-werror.patch #} build() { cd mdadm make CXFLAGS="$CFLAGS" BINDIR=/usr/bin UDEVDIR=/usr/lib/udev } package() { cd mdadm make INSTALL=/usr/bin/install BINDIR=/usr/bin DESTDIR="$pkgdir" UDEVDIR=/usr/lib/udev install install -D -m644 ../mdadm.conf "$pkgdir"/etc/mdadm.conf install -D -m755 misc/mdcheck "$pkgdir"/usr/share/mdadm/mdcheck } #---- arch license gpg-key & sha256sums ---- arch=(x86_64) license=('GPL-2.0-or-later') validpgpkeys=(6A86B80E1D22F21D0B26BA75397D82E0531A9C91 # Jes Sorensen EED84966493AEEAF4B466F696F9E3E9D4EDEBB11) # Mariusz Tkaczyk sha256sums=(SKIP d2d64fc4ab823b347f7fea7fa0326aa7edb6dcdf6e987a53856b07178ad0886e) # mdadm.conf ## a72b6f42dd245fb619a86456ba0cada3602be8d611300e439983268d25fe909f mdadm-4.3-02-x86_64.pkg.tar.lz