# HG changeset patch # User Dominique Corbex # Date 1220991317 -7200 # Node ID d5be027602ddc8500f8182b3dc122a9cecc4f7d9 # Parent dc8da468bd43c3198b3b77160391d745a45a1949 Add: libedit BSD licensed command line editor library diff -r dc8da468bd43 -r d5be027602dd libedit-dev/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libedit-dev/receipt Tue Sep 09 22:15:17 2008 +0200 @@ -0,0 +1,27 @@ +# SliTaz package receipt. + +PACKAGE="libedit-dev" +VERSION="2.11" +CATEGORY="development" +SHORT_DESC="Berkeley-style licensed command line editor library devel files" +MAINTAINER="domcox@users.sourceforge.net" +SOURCE="libedit-20080712" +WANTED="libedit" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + src=$WOK/$WANTED/$SOURCE-$VERSION + _pkg=$src/_pkg + echo "src=$src" + mkdir -p $fs/usr $fs/usr/lib + cp -a $_pkg/usr/include $fs/usr + cp -a $_pkg/usr/lib/*a $fs/usr/lib + cp -a $_pkg//usr/lib/pkgconfig $fs/usr/lib +} + +post_remove() +{ + rm -rf /usr/lib/pkgconfig + rm -rf /usr/include/editline +} diff -r dc8da468bd43 -r d5be027602dd libedit/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libedit/receipt Tue Sep 09 22:15:17 2008 +0200 @@ -0,0 +1,33 @@ +# SliTaz package receipt. + +PACKAGE="libedit" +VERSION="2.11" +CATEGORY="library" +SHORT_DESC="Berkeley-style licensed command line editor library" +MAINTAINER="domcox@users.sourceforge.net" +DEPENDS="" +SOURCE="libedit-20080712" +TARBALL="$SOURCE-$VERSION.tar.gz" +WEB_SITE="http://www.thrysoee.dk/editline/" +WGET_URL="http://www.thrysoee.dk/editline/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + ./configure \ + --prefix=/usr \ + --mandir=/usr/share/man \ + $CONFIGURE_ARGS \ + && make + make DESTDIR=$PWD/_pkg install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib + cp -a $_pkg/usr/lib/*.so* $fs/usr/lib + strip --strip-unneeded $fs/usr/lib/* +} +