From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- community/nut/PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 community/nut/PKGBUILD (limited to 'community/nut') diff --git a/community/nut/PKGBUILD b/community/nut/PKGBUILD new file mode 100644 index 000000000..e44333a5f --- /dev/null +++ b/community/nut/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Thomas Dziedzic < gostrc at gmail > +# Contributor: Slash + +pkgname=nut +pkgver=16.9 +pkgrel=1 +pkgdesc='Records what you eat and analyzes your meals for nutrient levels in terms of the Daily Value or DV which is the standard for food labeling in the US.' +url='http://nut.sourceforge.net/' +license=('GPL') +arch=('i686' 'x86_64') +source=("http://downloads.sourceforge.net/project/nut/nut/${pkgver}/nut-${pkgver}.tar.gz") +md5sums=('1f5a56a372023f4dcfc5a31fef61f5dd') + +build() { + cd ${pkgname}-${pkgver} + + # change install path to /usr instead of /usr/local + sed -i 's#local/##' Makefile + + make +} + +package() { + cd ${pkgname}-${pkgver} + + # Install Data + install -d ${pkgdir}/usr/lib/${pkgname} + install -m644 raw.data/* \ + ${pkgdir}/usr/lib/${pkgname}/ + + # Install Binary + install -D ${pkgname} \ + ${pkgdir}/usr/bin/${pkgname} + + # Install Man Page + install -D -m644 ${pkgname}.1 \ + ${pkgdir}/usr/share/man/man1/${pkgname}.1 +} -- cgit v1.2.3-54-g00ecf