From 99b8d78bc6ad76a0986614a92db15ee9d76124a8 Mon Sep 17 00:00:00 2001 From: Eric Bélanger Date: Tue, 23 Apr 2013 02:14:29 -0400 Subject: Add prepare function to PKGBUILD proto files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Eric Bélanger Signed-off-by: Allan McRae --- proto/PKGBUILD-split.proto | 8 +++++++- proto/PKGBUILD.proto | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/proto/PKGBUILD-split.proto b/proto/PKGBUILD-split.proto index 42c469c7..672e7dfb 100644 --- a/proto/PKGBUILD-split.proto +++ b/proto/PKGBUILD-split.proto @@ -24,10 +24,16 @@ backup=() options=() install= changelog= -source=($pkgbase-$pkgver.tar.gz) +source=($pkgbase-$pkgver.tar.gz + $pkgname-$pkgver.patch) noextract=() md5sums=() #generate with 'makepkg -g' +prepare() { + cd "$srcdir/$pkgname-$pkgver" + patch -p1 -i "$srcdir/$pkgname-$pkgver.patch" +} + build() { cd "$srcdir/$pkgbase-$pkgver" ./configure --prefix=/usr diff --git a/proto/PKGBUILD.proto b/proto/PKGBUILD.proto index 8e9ae047..d4c01b80 100644 --- a/proto/PKGBUILD.proto +++ b/proto/PKGBUILD.proto @@ -24,10 +24,16 @@ backup=() options=() install= changelog= -source=($pkgname-$pkgver.tar.gz) +source=($pkgname-$pkgver.tar.gz + $pkgname-$pkgver.patch) noextract=() md5sums=() #generate with 'makepkg -g' +prepare() { + cd "$srcdir/$pkgname-$pkgver" + patch -p1 -i "$srcdir/$pkgname-$pkgver.patch" +} + build() { cd "$srcdir/$pkgname-$pkgver" ./configure --prefix=/usr -- cgit v1.2.3-70-g09d2