mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-16 14:25:21 -05:00
9a127d8ed4
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>
25 lines
551 B
Plaintext
25 lines
551 B
Plaintext
# Maintainer: Joe User <joe.user@example.com>
|
|
|
|
pkgname=patch
|
|
pkgver=2.5.4
|
|
pkgrel=3
|
|
pkgdesc="A utility to apply patch files to original sources"
|
|
arch=('i686' 'x86_64')
|
|
url="http://www.gnu.org/software/patch/patch.html"
|
|
license=('GPL')
|
|
groups=('base-devel')
|
|
depends=('glibc' 'ed')
|
|
source=(ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz)
|
|
md5sums=('ee5ae84d115f051d87fcaaef3b4ae782')
|
|
|
|
build() {
|
|
cd "$srcdir"/$pkgname-$pkgver
|
|
./configure --prefix=/usr
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir"/$pkgname-$pkgver
|
|
make prefix="$pkgdir"/usr install
|
|
}
|