# Contributor: Assaf Gordon # Maintainer: Assaf Gordon setglobal pkgname = 'datamash' setglobal pkgver = '1.2' setglobal pkgrel = '0' setglobal pkgdesc = '"command-line text/math procesing'" setglobal url = '"https://www.gnu.org/software/datamash/'" setglobal arch = '"all'" setglobal license = '"GPL'" setglobal source = ""http://ftpmirror.gnu.org/datamash/$pkgname-$pkgver.tar.gz"" setglobal subpackages = ""$pkgname-doc $pkgname-bash-completion:bashcomp:noarch"" setglobal builddir = ""$srcdir/$pkgname-$pkgver"" proc build { cd $builddir ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --disable-nls \ --disable-werror \ --with-bash-completion-dir=local make } proc package { cd $builddir make -j1 DESTDIR="$pkgdir" install rm -rf "$pkgdir"/usr/share/datamash/examples \ "$pkgdir"/usr/lib/charset.alias } proc bashcomp { setglobal depends = ''"" setglobal pkgdesc = ""Bash completions for $pkgname"" setglobal install_if = ""$pkgname=$pkgver-r$pkgrel bash-completion"" mkdir -p "$subpkgdir"/usr/share/bash-completion/completions/ mv "$pkgdir"/usr/share/datamash/bash-completion.d/datamash \ "$subpkgdir"/usr/share/bash-completion/completions/ rmdir -p "$pkgdir"/usr/share/datamash/bash-completion.d || true } setglobal sha512sums = '"afb0960ffa881e1112394f5e0355c7a6efea13d6bdcbccb9830a6cde617e13701ca361d62c8283b7a64a27135b2f54a75970b17a7d73a5f0ba914ab70f05c086 datamash-1.2.tar.gz'"