archrelease: copy trunk to testing-x86_64
[arch-packages.git] / dmraid / repos / core-x86_64 / PKGBUILD
blob4b7d8dc711bcb03845582a8e02eba99be199cab2
1 # Maintainer: Tobias Powalowski <tpowa@archlinux.org>
2 #Contributor: Urs Wolfer <uwolfer @ fwo.ch>
4 pkgname=dmraid
5 pkgver=1.0.0.rc16.3
6 pkgrel=14
7 pkgdesc="Device mapper RAID interface"
8 url="https://people.redhat.com/~heinzm/sw/dmraid/"
9 conflicts=('mkinitcpio<0.7')
10 depends=('device-mapper>=2.0.54')
11 arch=('x86_64')
12 license=('GPL')
13 source=(#https://sources.archlinux.org/other/dmraid/$pkgname-$pkgver.tar.bz2
14         https://people.redhat.com/~heinzm/sw/dmraid/src/$pkgname-1.0.0.rc16-3.tar.bz2
15         dmraid_install
16         dmraid_hook
17         dmraid_tmpfiles
18         dmraid.service
19         dmraid-format-security.patch)
20 install=dmraid.install
21 sha256sums=('93421bd169d71ff5e7d2db95b62b030bfa205a12010b6468dcdef80337d6fbd8'
22             '6e74f7e1d66fbe5fc41560dfebb327eb31eb3104fec09985e388c2fe252d6575'
23             'e74cdc82b59160d079594ce082980a3ae3561b5f6ecbdfdd30b7497b76373a2b'
24             'f00fa4462d83553d2fb769159a019b4d4898634e52b4a9bf796fe52b3b97f0cc'
25             '7d7c09d40e52a3596fe3ddb2c370a1b7c838530902f8395f5c12f8d07eaa2491'
26             '7c91f82db42018b09cf19fb43d3e1f672cc0b926acc6c572b01c7724206da650')
28 prepare() {
29   cd "$pkgname/1.0.0.rc16-3/$pkgname"
30   patch -Np1 -i ${srcdir}/dmraid-format-security.patch
33 build() {
34   cd "$pkgname/1.0.0.rc16-3/$pkgname"
35   ./configure --enable-led --enable-intel_led
36   make -j1
39 package() {
40   cd "$pkgname/1.0.0.rc16-3/$pkgname"
41   make DESTDIR="$pkgdir" sbindir=/usr/bin prefix=/usr libdir=/usr/lib mandir=/usr/share/man includedir=/usr/include install
42   install -D -m644 "$srcdir"/dmraid_install "$pkgdir"/usr/lib/initcpio/install/dmraid
43   install -D -m644 "$srcdir"/dmraid_hook "$pkgdir"/usr/lib/initcpio/hooks/dmraid
44   install -D -m644 "$srcdir"/dmraid_tmpfiles "$pkgdir"/usr/lib/tmpfiles.d/dmraid.conf
46   # fix permissions
47   chmod 644 "$pkgdir"/usr/include/dmraid/* "$pkgdir"/usr/lib/libdmraid.a
49   install -Dm644 "$srcdir/dmraid.service" "$pkgdir/usr/lib/systemd/system/dmraid.service"