diff options
author | Jonathan Liu | 2015-06-19 12:04:29 +1000 |
---|---|---|
committer | Jonathan Liu | 2015-06-19 12:04:29 +1000 |
commit | 37e538a8d40d546af45a676cd40a538b6c4730d9 (patch) | |
tree | 064cc2f7cf713dbe75cd8f56d84bdfd1041b5d6e | |
download | aur-37e538a8d40d546af45a676cd40a538b6c4730d9.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 24 | ||||
-rw-r--r-- | ddrutility.install | 22 |
3 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..0eed2137b73c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = ddrutility + pkgdesc = Set of utilities for use with GNU ddrescue to aid with data recovery + pkgver = 2.7 + pkgrel = 1 + url = http://sourceforge.net/projects/ddrutility/ + install = ddrutility.install + arch = i686 + arch = x86_64 + license = GPL3 + depends = bash + source = http://downloads.sourceforge.net/project/ddrutility/ddrutility-2.7.tar.gz + md5sums = 687b1864ca2fc960f88051f1fd9ab1ce + +pkgname = ddrutility + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c224ac680f30 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,24 @@ +# Maintainer: Jonathan Liu <net147@gmail.com> +pkgname=ddrutility +pkgver=2.7 +pkgrel=1 +pkgdesc="Set of utilities for use with GNU ddrescue to aid with data recovery" +arch=('i686' 'x86_64') +url="http://sourceforge.net/projects/ddrutility/" +license=('GPL3') +depends=('bash') +install="$pkgname.install" +source=("http://downloads.sourceforge.net/project/$pkgname/$pkgname-$pkgver.tar.gz") +md5sums=('687b1864ca2fc960f88051f1fd9ab1ce') + +build() { + cd "$srcdir/$pkgname-$pkgver" + ./configure --prefix=/usr + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + make DESTDIR="$pkgdir/" install + rmdir "$pkgdir/usr/share/aclocal" +} diff --git a/ddrutility.install b/ddrutility.install new file mode 100644 index 000000000000..025e1234af7c --- /dev/null +++ b/ddrutility.install @@ -0,0 +1,22 @@ +infodir=usr/share/info +filelist=(ddrutility.info) + +post_install() { + [[ -x usr/bin/install-info ]] || return 0 + for file in "${filelist[@]}"; do + install-info "$infodir/$file.gz" "$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.gz" "$infodir/dir" 2> /dev/null + done +} + +# vim:set ts=2 sw=2 et: |