diff --git a/lfs/patch-2.7.6.PKGBUILD b/lfs/patch-2.7.6.PKGBUILD new file mode 100644 index 0000000..72fab20 --- /dev/null +++ b/lfs/patch-2.7.6.PKGBUILD @@ -0,0 +1,27 @@ +pkgname=patch +pkgver=2.7.6 +pkgrel=10 +pkgdesc='A utility to apply patch files to original sources' +arch=('x86_64') +url='https://www.gnu.org/software/patch/' +license=('GPL') +sources=("${pkgname}-${pkgver}.tar.xz") +urls=("https://ftp.gnu.org/gnu/${pkgname}/${sources[0]}") +md5sums=("78ad9937e4caadcba1526ef1853730d5") + +src_prepare() { + tar -xf ${distdir}/${sources[0]} --strip-components=1 +} + +src_build() { + ./configure --prefix=/usr + make +} + +src_check() { + make check +} + +src_install() { + make DESTDIR="${pkgdir}" install +}