db-move: moved gnome-dictionary from [testing] to [extra] (x86_64)
[arch-packages.git] / ddrescue / trunk / PKGBUILD
blob087b63400c0d40e0820b7f49281636bcd46ae0a2
1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Contributor: Ray Rashif <schiv@archlinux.org>
3 # Contributor: Pierre Schmitz <pierre@archlinux.de>
4 # Contributor: Paul Mattal <paul@archlinux.org>
6 pkgname=ddrescue
7 pkgver=1.27
8 pkgrel=1
9 pkgdesc="GNU data recovery tool"
10 arch=(x86_64)
11 url="https://www.gnu.org/software/ddrescue/ddrescue.html"
12 license=(GPL3)
13 depends=(gcc-libs glibc)
14 source=(https://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.lz{,.sig})
15 sha512sums=('b9a8b462536c5ec29db69e3a5f70b0bce160d5c58373cb519f6d54aba2fc0c4907e74fbcd11d49291306dc29c76f1992575aef7cfff41f34748bbd96e33b745a'
16             'SKIP')
17 b2sums=('a8957819dec2255e446504c822331ae13a86193f4655cbe6d559a498db9daf8c0f8066355e395cfd44f08b2f15d831820003bdfde6fc59c8434a695f95bdbe21'
18         'SKIP')
19 validpgpkeys=('1D41C14B272A2219A739FA4F8FE99503132D7742') # Antonio Diaz Diaz
21 build() {
22   # fake configure script reinvents autotools and requires custom parameters to
23   # set CPPFLAGS, CXXFLAGS and LDFLAGS
24   local configure_options=(
25     --prefix=/usr
26     CPPFLAGS="$CPPFLAGS"
27     CXXFLAGS="$CXXFLAGS"
28     LDFLAGS="$LDFLAGS"
29   )
31   cd $pkgname-$pkgver
32   ./configure "${configure_options[@]}"
33   make
36 package() {
37   make DESTDIR="$pkgdir" install install-man -C "$pkgname-$pkgver"
38   install -vDm 644  $pkgname-$pkgver/{AUTHORS,ChangeLog,NEWS,README} -t "$pkgdir/usr/share/doc/$pkgname"