summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-08-07 19:44:23 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-08-07 19:44:23 (GMT)
commitbccdd7eac4243a260bb8e4f5fdc39a6dae2cbe39 (patch)
tree763aa35dc6d84b6f500fcb69a763873f9e0e61a0
parent2d43337fdd1627ce651279fcccd64efbccd8ebce (diff)
downloadlinhes_pkgbuild-bccdd7eac4243a260bb8e4f5fdc39a6dae2cbe39.zip
linhes_pkgbuild-bccdd7eac4243a260bb8e4f5fdc39a6dae2cbe39.tar.gz
linhes_pkgbuild-bccdd7eac4243a260bb8e4f5fdc39a6dae2cbe39.tar.bz2
ddrescue 1.16
-new
-rw-r--r--abs/extra/ddrescue/PKGBUILD30
-rw-r--r--abs/extra/ddrescue/ddrescue.install22
2 files changed, 52 insertions, 0 deletions
diff --git a/abs/extra/ddrescue/PKGBUILD b/abs/extra/ddrescue/PKGBUILD
new file mode 100644
index 0000000..5316569
--- /dev/null
+++ b/abs/extra/ddrescue/PKGBUILD
@@ -0,0 +1,30 @@
+# $Id: PKGBUILD 162261 2012-06-24 16:23:55Z schiv $
+# Maintainer: Ray Rashif <schiv@archlinux.org>
+# Contributor: Pierre Schmitz <pierre@archlinux.de>
+# Contributor: Paul Mattal <paul@archlinux.org>
+
+pkgname=ddrescue
+pkgver=1.16
+pkgrel=1
+pkgdesc="GNU data recovery tool"
+arch=('i686' 'x86_64')
+url="http://www.gnu.org/software/ddrescue/ddrescue.html"
+license=('GPL3')
+depends=('gcc-libs')
+install=$pkgname.install
+source=("http://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz"
+ "http://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz.sig")
+md5sums=('57b67407e882c6418531d48a2f20d16b'
+ 'bf072280587665d82829be15eb6fc9ad')
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install install-man
+ rm "$pkgdir"/usr/share/info/dir
+}
diff --git a/abs/extra/ddrescue/ddrescue.install b/abs/extra/ddrescue/ddrescue.install
new file mode 100644
index 0000000..9e2afa7
--- /dev/null
+++ b/abs/extra/ddrescue/ddrescue.install
@@ -0,0 +1,22 @@
+infodir=/usr/share/info
+filelist=(ddrescue.info)
+
+post_install() {
+ [ -x usr/bin/install-info ] || return 0
+ for file in ${filelist[@]}; do
+ install-info $infodir/$file $infodir/dir 2> /dev/null
+ done
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ [ -x usr/bin/install-info ] || return 0
+ for file in ${filelist[@]}; do
+ install-info --delete $infodir/$file $infodir/dir 2> /dev/null
+ done
+}
+
+# vim:set ts=2 sw=2 et: