diff options
author | Allan McRae <allan@archlinux.org> | 2011-05-02 02:38:29 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-05-02 17:04:13 +0200 |
commit | 9a127d8ed4a43009f93b7e0e2ee60dc07034801d (patch) | |
tree | 6e4bc10f08e93314fa29d9fb089af63d204f6771 /doc | |
parent | da24324e2dad434bc6d868d9815efc9c2517a769 (diff) | |
download | pacman-9a127d8ed4a43009f93b7e0e2ee60dc07034801d.tar.gz pacman-9a127d8ed4a43009f93b7e0e2ee60dc07034801d.tar.xz |
Update PKGBUILD example
Add quotes around $srcdir/$pkgdir (FS#23960) and use a package()
function.
Signed-off-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/PKGBUILD-example.txt | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/doc/PKGBUILD-example.txt b/doc/PKGBUILD-example.txt index 99fd8c24..238c0f40 100644 --- a/doc/PKGBUILD-example.txt +++ b/doc/PKGBUILD-example.txt @@ -13,8 +13,12 @@ source=(ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz) md5sums=('ee5ae84d115f051d87fcaaef3b4ae782') build() { - cd $srcdir/$pkgname-$pkgver + cd "$srcdir"/$pkgname-$pkgver ./configure --prefix=/usr make - make prefix=$pkgdir/usr install +} + +package() { + cd "$srcdir"/$pkgname-$pkgver + make prefix="$pkgdir"/usr install } |