mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 17:07:13 +08:00
30 lines
615 B
Bash
30 lines
615 B
Bash
|
|
pkgname=patch
|
|
pkgver=2.7.5
|
|
pkgrel=1
|
|
pkgdesc="A utility to apply patch files to original sources"
|
|
arch=('x86_64')
|
|
url="http://www.gnu.org/software/patch/patch.html"
|
|
license=('GPL')
|
|
groups=('base-devel')
|
|
depends=('glibc')
|
|
optdepends=('ed: Interpret the patch as an ed script')
|
|
source=("ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz")
|
|
md5sums=('e3da7940431633fb65a01b91d3b7a27a')
|
|
|
|
build() {
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
./configure --prefix=/usr
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
make DESTDIR=$pkgdir install
|
|
}
|