archrelease: copy trunk to extra-x86_64
[arch-packages.git] / libatasmart / trunk / PKGBUILD
blob2724865b8ccfc847a9989ae6db58d3d54897dfff
1 # Maintainer: Jan de Groot <jgc@archlinux.org>
3 pkgname=libatasmart
4 pkgver=0.19
5 pkgrel=5
6 pkgdesc="ATA S.M.A.R.T. Reading and Parsing Library"
7 arch=('x86_64')
8 license=('LGPL')
9 depends=('systemd-libs')
10 makedepends=('systemd')
11 url="http://0pointer.de/blog/projects/being-smart.html"
12 source=(http://0pointer.de/public/${pkgname}-${pkgver}.tar.xz
13         0001-Dont-test-undefined-bits.patch
14         0002-Drop-our-own-many-bad-sectors-heuristic.patch)
15 sha256sums=('61f0ea345f63d28ab2ff0dc352c22271661b66bf09642db3a4049ac9dbdb0f8d'
16             'ab19d6985bb524774607280a2ee62c48de01785660ff5206d80f778b6404188c'
17             '9bb5ca3431f76c182c5b076e2db9378d696608c2ff1d53d01e55c530ba293ce1')
19 prepare() {
20   cd $pkgname-$pkgver
21   patch -Np1 -i ../0001-Dont-test-undefined-bits.patch
22   patch -Np1 -i ../0002-Drop-our-own-many-bad-sectors-heuristic.patch
25 build() {
26   cd "${srcdir}/${pkgname}-${pkgver}"
27   ./configure --prefix=/usr \
28     --sysconfdir=/etc \
29     --localstatedir=/var \
30     --sbindir=/usr/bin \
31     --disable-static
32   make
35 package() {
36   cd "${srcdir}/${pkgname}-${pkgver}"
37   make DESTDIR="${pkgdir}" install