From f1fac6abfb676b081ee2d474ab3e15f6d07d0416 Mon Sep 17 00:00:00 2001 From: Andrew Fyfe Date: Fri, 6 Jul 2007 16:30:53 +0100 Subject: Update PKGBUILD example. Signed-off-by: Andrew Fyfe --- doc/PKGBUILD.5.txt | 32 +++----------------------------- 1 file changed, 3 insertions(+), 29 deletions(-) (limited to 'doc/PKGBUILD.5.txt') diff --git a/doc/PKGBUILD.5.txt b/doc/PKGBUILD.5.txt index 3fa2f66b..fbb7886c 100644 --- a/doc/PKGBUILD.5.txt +++ b/doc/PKGBUILD.5.txt @@ -54,7 +54,7 @@ Options and Directives found in /usr/share/licenses/common, then you should include the license in the package itself and set license=("custom") or license=("custom:LicenseName"). The license should be placed in - $startdir/pkg/usr/share/licenses/$pkgname when building the package. If + $pkgdir/usr/share/licenses/$pkgname when building the package. If multiple licenses are applicable for a package, list all of them: licenses=('GPL' 'FDL'). @@ -220,37 +220,11 @@ install file is available in the ABS tree (/var/abs/install.proto). Example ------- -The following is an example PKGBUILD for the 'modutils' package. For more +The following is an example PKGBUILD for the 'module-init-tools' package. For more examples, look through the ABS tree. ----- -# Maintainer: John Doe -# Contributor: Bill Smith -pkgname=modutils -pkgver=2.4.25 -pkgrel=1 -pkgdesc="Utilities for inserting modules in the linux kernel" -url="http://www.kernel.org" -makedepends=('bash' 'mawk') -depends=('glibc' 'zlib') -backup=(etc/modules.conf) -source=(ftp://ftp.kernel.org/pub/linux/utils/kernel/$pkgname/v2.4/$pkgname-$pkgver.tar.bz2 - modules.conf) -arch=('i686') -license=('GPL' 'custom') # dual licensed -md5sums=('2c0cca3ef6330a187c6ef4fe41ecaa4d' - '35175bee593a7cc7d6205584a94d8625') -options=(!libtool) - -build() { - cd $startdir/src/$pkgname-$pkgver - ./configure --prefix=/usr --enable-insmod-static - make || return 1 - make prefix=$startdir/pkg/usr install - mv $startdir/pkg/usr/sbin $startdir/pkg - mkdir -p $startdir/pkg/etc - cp ../modules.conf $startdir/pkg/etc -} +include::PKGBUILD-example.txt[] ----- -- cgit v1.2.3-54-g00ecf