diff options
author | Eric Bélanger <snowmaniscool@gmail.com> | 2013-04-23 08:14:29 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-04-24 05:57:50 +0200 |
commit | 99b8d78bc6ad76a0986614a92db15ee9d76124a8 (patch) | |
tree | b63e61e0c2e637e476e8f9babea8d22731b4dea2 /proto/PKGBUILD-split.proto | |
parent | 769facca22db733f0a70ce6a38062d37fe8d2579 (diff) | |
download | pacman-99b8d78bc6ad76a0986614a92db15ee9d76124a8.tar.gz pacman-99b8d78bc6ad76a0986614a92db15ee9d76124a8.tar.xz |
Add prepare function to PKGBUILD proto files
Signed-off-by: Eric Bélanger <snowmaniscool@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'proto/PKGBUILD-split.proto')
-rw-r--r-- | proto/PKGBUILD-split.proto | 8 |
1 files changed, 7 insertions, 1 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 |