--- PKGBUILD.orig 2008-04-21 01:06:40.000000000 -0700 +++ PKGBUILD 2008-04-21 00:43:01.000000000 -0700 @@ -13,13 +13,17 @@ install=slim.install license=('GPL') source=(http://download.berlios.de/$pkgname/$pkgname-$pkgver.tar.gz - slim slim.logrotate) + slim slim.logrotate stdlib.patch) md5sums=('1c1a87f3cbd3c334c874585e42701961' - '07431fcbd753d3abbcfedaa76401e212' '257cf53a3f762ff609e2afd265dac953') + '07431fcbd753d3abbcfedaa76401e212' + '257cf53a3f762ff609e2afd265dac953' + 'd8f13befcc09e2ca057299dbe5539b1d') build() { cd $startdir/src/$pkgname-$pkgver + patch < ../stdlib.patch + sed -i "s|/usr/X11R6/include|/usr/include/xorg|g" Makefile cp /usr/include/shadow.h . #wtf is going on with this? it works fine if copied locally sed -i "s|/usr/X11R6/|/usr/|g" Makefile