ADDED pkgs/attr/info Index: pkgs/attr/info ================================================================== --- /dev/null +++ pkgs/attr/info @@ -0,0 +1,14 @@ +#! /usr/bin/env bash + +version='2.4.47' +url="http://download.savannah.gnu.org/releases/attr/attr-${version}.src.tar.gz" +domain=core.appfs.rkeene.org +sha256='25772f653ac5b2e3ceeb89df50e4688891e21f723c460636548971652af0a859' + +function prebuild() { + echo "# Ignore: DESTDIR" >> Makefile +} + +function install() { + make install install-dev install-lib DESTDIR="${destdir}" +} ADDED pkgs/attr/patches/attr.destdir.diff Index: pkgs/attr/patches/attr.destdir.diff ================================================================== --- /dev/null +++ pkgs/attr/patches/attr.destdir.diff @@ -0,0 +1,36 @@ +--- ./include/builddefs.in.orig 2011-04-08 11:56:59.000000000 -0500 ++++ ./include/builddefs.in 2011-04-18 13:27:35.000000000 -0500 +@@ -40,14 +40,14 @@ + PKG_VERSION = @pkg_version@ + PKG_PLATFORM = @pkg_platform@ + PKG_DISTRIBUTION= @pkg_distribution@ +-PKG_BIN_DIR = @bindir@ +-PKG_SBIN_DIR = @sbindir@ +-PKG_LIB_DIR = @libdir@@libdirsuffix@ +-PKG_DEVLIB_DIR = @libexecdir@@libdirsuffix@ +-PKG_INC_DIR = @includedir@/attr +-PKG_MAN_DIR = @mandir@ +-PKG_DOC_DIR = @datadir@/doc/@pkg_name@ +-PKG_LOCALE_DIR = @datadir@/locale ++PKG_BIN_DIR = $(DESTDIR)@bindir@ ++PKG_SBIN_DIR = $(DESTDIR)@sbindir@ ++PKG_LIB_DIR = $(DESTDIR)@libdir@@libdirsuffix@ ++PKG_DEVLIB_DIR = $(DESTDIR)@libexecdir@@libdirsuffix@ ++PKG_INC_DIR = $(DESTDIR)@includedir@/attr ++PKG_MAN_DIR = $(DESTDIR)@mandir@ ++PKG_DOC_DIR = $(DESTDIR)@datadir@/doc/@pkg_name@ ++PKG_LOCALE_DIR = $(DESTDIR)@datadir@/locale + + CC = @cc@ + AWK = @awk@ +--- ./include/buildmacros.orig 2011-04-08 11:56:59.000000000 -0500 ++++ ./include/buildmacros 2011-04-18 13:28:23.000000000 -0500 +@@ -40,7 +40,7 @@ + $(LFILES:.l=.o) \ + $(YFILES:%.y=%.tab.o) + +-INSTALL = $(TOPDIR)/include/install-sh -o $(PKG_USER) -g $(PKG_GROUP) ++INSTALL = $(TOPDIR)/include/install-sh + + SHELL = /bin/sh + IMAGES_DIR = $(TOPDIR)/all-images