From: Tomas Zeman <tzeman@volny.cz>
Date: Tue, 30 Oct 2007 22:31:23 +0100
diet-mess822
diff -r e1c383f3e7f8 source/dietlibc/diet-mess822/FrugalBuild
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/source/dietlibc/diet-mess822/FrugalBuild Wed Feb 15 15:08:30 2012 +0100
@@ -0,0 +1,33 @@
+# Maintainer: Tomas Zeman <tzeman@volny.cz>
+
+branch=diet
+pkgorig=mess822
+pkgname=$branch-$pkgorig
+pkgver=0.58
+pkgrel=2
+pkgdesc="Library for parsing internet mail messages"
+makedepends=(dietlibc)
+url="http://cr.yp.to/mess822.html"
+archs=(i686)
+up2date='lynx -dump -nolist $url|grep $pkgorig|grep tar.gz|head -1|sed -e "s/.*$pkgorig-\(.*\)\.tar.gz.*$/\1/"'
+source=(http://cr.yp.to/software/$pkgorig-$pkgver.tar.gz)
+sha1sums=('ef3380c793c852d40688c108d164234ecf8a5362')
+provides=(mess822)
+
+build() {
+ DDIR="/usr/lib/diet"
+ Fcd $pkgorig-$pkgver
+ echo "/usr" > conf-home
+ echo "diet gcc $CFLAGS" > conf-cc
+ echo "diet gcc -s -static" > conf-ld
+ make || Fdie
+ echo "$Fdestdir/usr" > conf-home
+ mkdir $Fdestdir/etc
+ sed -i -e "s{/etc{$Fdestdir/etc{" hier.c
+ make setup || Fdie
+ Frm usr/man/cat*
+ Fmkdir $DDIR/lib
+ Fmv usr/lib/mess822.a $DDIR/lib
+ Fmv usr/include $DDIR
+}
+# vim: ft=sh