From 7e775bc6a662da96528f6681e4969fd75509ec8a Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 20 Dec 2012 12:32:18 +0000 Subject: main/pingu: actually apply patch --- main/pingu/APKBUILD | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'main/pingu') diff --git a/main/pingu/APKBUILD b/main/pingu/APKBUILD index 6ccad9a8c9..2aab349441 100644 --- a/main/pingu/APKBUILD +++ b/main/pingu/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Natanael Copa pkgname=pingu pkgver=1.2 -pkgrel=1 +pkgrel=2 pkgdesc="Small daemon that pings hosts and executes a script when status change" url="http://git.alpinelinux.org/cgit/pingu" arch="all" @@ -17,6 +17,15 @@ source="http://git.alpinelinux.org/cgit/$pkgname/snapshot/$pkgname-$pkgver.tar.b _builddir="$srcdir"/$pkgname-$pkgver +prepare() { + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + build() { cd "$_builddir" make || return 1 -- cgit v1.2.3