blob: 6e1fed58ff8d4866f0e9945376f9a0dea5e81514 (
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
|
# $Id$
# Maintainer: Jan de Groot <jgc@archlinux.org>
pkgname=libatasmart
pkgver=0.19
pkgrel=3
pkgdesc="ATA S.M.A.R.T. Reading and Parsing Library"
arch=('i686' 'x86_64')
license=('LGPL')
depends=('libsystemd')
makedepends=('systemd')
url="http://0pointer.de/blog/projects/being-smart.html"
source=(http://0pointer.de/public/${pkgname}-${pkgver}.tar.xz
0001-Dont-test-undefined-bits.patch
0002-Drop-our-own-many-bad-sectors-heuristic.patch)
md5sums=('53afe2b155c36f658e121fe6def33e77'
'eb5d0468b0d47d099e5164372a21f9da'
'cebd1fbed0b05d0458177d6d3ad4ea3f')
prepare() {
cd $pkgname-$pkgver
patch -Np1 -i ../0001-Dont-test-undefined-bits.patch
patch -Np1 -i ../0002-Drop-our-own-many-bad-sectors-heuristic.patch
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--sbindir=/usr/bin \
--disable-static
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
}
|