[pacman-dev] [PATCH] Update example PKGBUILD

Jason St. John jstjohn at purdue.edu
Tue May 28 07:39:56 EDT 2013

From: "Jason St. John" <jstjohn at purdue.edu>

Update doc/PKGBUILD-example.txt with several changes from the official
Arch Linux package for patch-2.7.1-1, including other changes shown below:

-- replaces spaces with tabs in functions
-- replaces 'make prefix=' with 'make DESTDIR='
-- improves quoting of the "cd" command in functions

Signed-off-by: Jason St. John <jstjohn at purdue.edu>
This is a resubmission requested by Allan that simplifies the PKGBUILD.

 doc/PKGBUILD-example.txt | 23 +++++++++++++----------
 1 file changed, 13 insertions(+), 10 deletions(-)

diff --git a/doc/PKGBUILD-example.txt b/doc/PKGBUILD-example.txt
index 00dd8b1..910fd06 100644
--- a/doc/PKGBUILD-example.txt
+++ b/doc/PKGBUILD-example.txt
@@ -1,24 +1,27 @@
 # Maintainer: Joe User <joe.user at example.com>

 pkgdesc="A utility to apply patch files to original sources"
 arch=('i686' 'x86_64')
-depends=('glibc' 'ed')
+optdepends=('ed: for "patch -e" functionality')
+         'SKIP')

 build() {
-  cd "$srcdir"/$pkgname-$pkgver
-  ./configure --prefix=/usr
-  make
+	cd "$srcdir/$pkgname-$pkgver"
+	./configure --prefix=/usr
+	make

 package() {
-  cd "$srcdir"/$pkgname-$pkgver
-  make prefix="$pkgdir"/usr install
+	cd "$srcdir/$pkgname-$pkgver"
+	make DESTDIR="$pkgdir/" install

More information about the pacman-dev mailing list