diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-02-18 01:56:34 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-02-18 01:56:34 +0000 |
commit | 8185891e28635bdb83fdf4ba4391030912dae596 (patch) | |
tree | 66a946535bdd228514750233b2cc99dd1866ff64 /gnu/recutils | |
parent | 60a11f87366fdfbd114cdc91ff813518858e5f8d (diff) |
Tue Feb 18 01:56:27 UTC 2014
Diffstat (limited to 'gnu/recutils')
-rw-r--r-- | gnu/recutils/ChangeLog | 36 | ||||
-rw-r--r-- | gnu/recutils/PKGBUILD | 42 | ||||
-rw-r--r-- | gnu/recutils/recutils.install | 36 |
3 files changed, 114 insertions, 0 deletions
diff --git a/gnu/recutils/ChangeLog b/gnu/recutils/ChangeLog new file mode 100644 index 000000000..02a3a418d --- /dev/null +++ b/gnu/recutils/ChangeLog @@ -0,0 +1,36 @@ +recutils (1.5-1) + + * New upstream release + - Version 1.5 (13 January 2012) + - The utilities will now ask interactively for a password + if it was not provided with the -s command line option. + This avoids security problems related to shell history files. + - Support for octal and hexadecimal numbers has been added. + They can be used in both the records and selection expressions. + - It is now possible to select a given number of random records + in many of the utilities using the -m command line option. + - The -n option now accepts a list of indexes, supporting ranges. + - The new -U (uniq) option for recsel removes duplicated fields + in the output records. + - The new -q option allows to quickly search for the desired record + without having to provide a complete selection expression. + - Auto generated fields are now considered integers by default. + This avoids repetitive patterns involving %auto and %type. + - Tab characters are now allowed in blank lines betwwen records. + - The API in rec.h is now better documented with comments, and improved. + - recfix now exits with an error status + if there is a parse error in some input file. + - The usage of the internal data structures has been _vastly_ improved, + resulting in a much faster operation. + - Internal cleanup and code factorization. + - Many, many, many bug fixes :D + * PKGBUILD + - commenting out "makedepends=(mdbtools)" for now + because the current "mdbtools" package from the AUR + is missing 'MDB_NOFLAGS' in the "mdbtools.h" file. + - all other dependencies to compile and run recutils + are already satisfied through the 'base' group. + * Added some examples + + -- Sven Wick <sven.wick@gmx.de> Fri, 20 Jan 2012 16:04:02 +0100 + diff --git a/gnu/recutils/PKGBUILD b/gnu/recutils/PKGBUILD new file mode 100644 index 000000000..519c0fa6f --- /dev/null +++ b/gnu/recutils/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: Max Meyer <dev@fedux.org> +# Contributor: Sven Wick <sven.wick@gmx.de> +# +# Please fork and send me a pull request for changes to package build file(s) +# Url: https://github.com/maxmeyer/archlinux-recutils +# + +pkgname=recutils +pkgver=1.5 +pkgrel=1 +pkgdesc="GNU tools and libraries to access human-editable, text-based databases." +arch=(i686 x86_64 mips64el) +url="http://www.gnu.org/software/recutils/" +license=('GPL3') +depends=(libgcrypt curl) +optdepends=("mdbtools: for processing M$ Access databases") +#options=() +install=recutils.install +changelog=ChangeLog +source=("http://ftp.gnu.org/gnu/recutils/$pkgname-$pkgver.tar.gz") +sha256sums=('7ed67e74468084f52ad9341e4b11c44e5fd9d5325b93b7eb2cb230c839ff5dec') +options=(!libtool) + +build() { + cd "$srcdir/$pkgname-$pkgver" + + ./configure --prefix=/usr + make +} + +check() { + cd "$srcdir/$pkgname-$pkgver" + make check +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + make DESTDIR="$pkgdir/" install +} + +# vim:set ts=2 sw=2 et: diff --git a/gnu/recutils/recutils.install b/gnu/recutils/recutils.install new file mode 100644 index 000000000..245c7ae01 --- /dev/null +++ b/gnu/recutils/recutils.install @@ -0,0 +1,36 @@ +_infodir=/usr/share/info +_infofiles=( recutils.info.gz ) + +_mandir=/usr/share/man/man1 +_manfiles=( csv2rec.1.gz rec2csv.1.gz recdel.1.gz recfix.1.gz recfmt.1.gz recinf.1.gz recins.1.gz recsel.1.gz recset.1.gz) + +## arg 1: the new package version +post_install() { + [ -x /usr/bin/mandb ] || return 0 + for _file in ${_manfiles[@]}; do + mandb -f $_mandir/$_file + done + + [ -x /usr/bin/install-info ] || return 0 + for _file in ${_infofiles[@]}; do + install-info $_infodir/$_file $_infodir/dir #2> /dev/null + done +} + +# arg 1: the new package version +# arg 2: the old package version +post_upgrade() { + post_install $1 +} + +pre_remove() { + [ -x /usr/bin/mandb ] || return 0 + mandb + + [ -x /usr/bin/install-info ] || return 0 + for _file in ${_infofiles[@]}; do + install-info --delete $_infodir/$_file $_infodir/dir #2> /dev/null + done +} + +# vim:set ts=2 sw=2 et: |