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>
This commit is contained in:
parent
da24324e2d
commit
9a127d8ed4
1 changed files with 6 additions and 2 deletions
|
@ -13,8 +13,12 @@ source=(ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz)
|
||||||
md5sums=('ee5ae84d115f051d87fcaaef3b4ae782')
|
md5sums=('ee5ae84d115f051d87fcaaef3b4ae782')
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd $srcdir/$pkgname-$pkgver
|
cd "$srcdir"/$pkgname-$pkgver
|
||||||
./configure --prefix=/usr
|
./configure --prefix=/usr
|
||||||
make
|
make
|
||||||
make prefix=$pkgdir/usr install
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "$srcdir"/$pkgname-$pkgver
|
||||||
|
make prefix="$pkgdir"/usr install
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue