]>
All Packages Download: MD5 sum: &curl-md5; Download: MD5 sum: &libarchive-md5; Download: MD5 sum: &pacman-md5; libarchive &libarchive-version;
&libarchive-url;
Libarchive-&libarchive-version; <screen><userinput remap="configure">./configure --prefix=/tools \ --without-bz2lib \ --without-xml2 \ --enable-bsdtar=static \ --enable-bsdcpio=static</userinput></screen> <screen><userinput remap="make">make</userinput></screen> <screen><userinput remap="install">make install</userinput></screen> </sect2> </sect1> <sect1 id="ch-tools-curl" role="wrap"> <?dbhtml filename="curl.html"?> <sect1info condition="script"> <productname>curl</productname> <productnumber>&curl-version;</productnumber> <address>&curl-url;</address> </sect1info> <title>Curl-&curl-version; <screen><userinput remap="configure">./configure --prefix=/tools \ --disable-static</userinput></screen> <screen><userinput remap="make">make</userinput></screen> <screen><userinput remap="install">make install</userinput></screen> </sect2> </sect1> <sect1 id="ch-tools-pkgmngt" role="wrap"> <?dbhtml filename="pacman.html"?> <sect1info condition="script"> <productname>pacman</productname> <productnumber>&pacman-version;</productnumber> <address>&pacman-url;</address> </sect1info> <title>Pacman-&pacman-version; <!-- You can use any number of remap="pre", "configure", "make", "test", "install" <screen><userinput remap="something">Instructions</userinput></screen>. They are executed in that order. "pre" can be used for patching for example. In case testing is enabled, the instructions flagged test are logged to a different file (test-log). If testing is not enabled, they are not executed at all. Do not put line breaks before and after your instructions. <userinput> without remap attribute are considered configuration instructions and executed last. You can also use remap="adjust" for the same purpose. --> <screen><userinput remap="configure">./configure --prefix=/tools \ --without-openssl \ PKG_CONFIG_PATH=/tools/lib/pkgconfig \ DUPATH=/tools/bin/du</userinput></screen> <screen><userinput remap="make">make</userinput></screen> <screen><userinput remap="install">make install</userinput></screen> <screen><userinput>sed -e 's@/usr@/tools@g' \ -e 's/\([^!]\)strip/\1!strip/' \ -e 's/\([^!]\)zipman/\1!zipman/' \ -i /tools/etc/makepkg.conf cat >> /tools/etc/makepkg.conf << EOF BUILDDIR=/sources PKGDEST=/var/lib/packages PACKAGER="Pierre Labastie <lnimbus@club-internet.fr>" EOF cat >> /tools/etc/pacman.conf << EOF DBPath = /var/lib/pacman/ CacheDir = /var/cache/pacman/pkg/ LogFile = /var/log/pacman.log SigLevel = Never # Repository: do not add one now: repo-add needs openssl. EOF</userinput></screen> </sect2> </sect1> <!-- Mandatory section for creating dirs. These instructions are added at the end of the creating dirs instructions of the book. Do not change the following line --> <sect1 id="ch-pkgmngt-creatingdirs"> <title>Creating Directories mkdir -pv /var/{lib/{packages,pacman},cache/pkg}
Creating Essential Files No file? libarchive &libarchive-version;
&libarchive-url;
Libarchive-&libarchive-version; <screen><userinput remap="configure">./configure --prefix=/usr \ --disable-static</userinput></screen> <screen><userinput remap="make">make</userinput></screen> <screen><userinput remap="install">make DESTDIR=$PKG_DEST install</userinput></screen> </sect2> </sect1> <sect1 id="ch-system-curl" role="wrap"> <?dbhtml filename="curl.html"?> <sect1info condition="script"> <productname>curl</productname> <productnumber>&curl-version;</productnumber> <address>&curl-url;</address> </sect1info> <title>Curl-&curl-version; <screen><userinput remap="configure">./configure --prefix=/usr \ --disable-static \ --enable-threaded-resolver</userinput></screen> <screen><userinput remap="make">make</userinput></screen> <screen><userinput remap="install">make DESTDIR=$PKG_DEST install find docs \( -name "Makefile*" -o -name "*.1" -o -name "*.3" \) -exec rm {} \; install -v -d -m755 $PKG_DEST/usr/share/doc/curl-&curl-version; cp -v -R docs/* $PKG_DEST/usr/share/doc/curl-&curl-version;</userinput></screen> </sect2> </sect1> <sect1 id="ch-system-pkgmngt" role="wrap"> <?dbhtml filename="pacman.html"?> <sect1info condition="script"> <productname>pacman</productname> <productnumber>&pacman-version;</productnumber> <address>&pacman-url;</address> </sect1info> <title>Pacman-&pacman-version; <screen><userinput remap="configure">./configure --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var</userinput></screen> <screen><userinput remap="make">make</userinput></screen> <!-- Those instructions are executed with PKG_DEST set. They are not processed in any way to add $PKG_DEST at some place, and the PKG_DEST directory is not populated before, so it is basically empty. You have thus to create any directory needed in $PKG_DEST and not otherwise created by the make install command. --> <screen><userinput remap="install">make DESTDIR=$PKG_DEST install</userinput></screen> <screen><userinput>sed -e 's/\([^!]\)strip/\1!strip/' \ -e 's/\([^!]\)zipman/\1!zipman/' \ -i /etc/makepkg.conf cat >> /etc/makepkg.conf << EOF BUILDDIR=/sources PKGDEST=/var/lib/packages PACKAGER="Pierre Labastie <lnimbus@club-internet.fr<" EOF cat >> /etc/pacman.conf << EOF DBPath = /var/lib/pacman/ CacheDir = /var/cache/pacman/pkg/ LogFile = /var/log/pacman.log SigLevel = Never EOF</userinput></screen> </sect2> </sect1> </article>