aboutsummaryrefslogtreecommitdiffstats
path: root/testing/pwsafe/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/pwsafe/APKBUILD')
-rw-r--r--testing/pwsafe/APKBUILD16
1 files changed, 6 insertions, 10 deletions
diff --git a/testing/pwsafe/APKBUILD b/testing/pwsafe/APKBUILD
index 44d3730555..91f459bca7 100644
--- a/testing/pwsafe/APKBUILD
+++ b/testing/pwsafe/APKBUILD
@@ -11,24 +11,20 @@ makedepends="ncurses-dev openssl-dev readline-dev"
subpackages="$pkgname-doc"
source="http://nsd.dyndns.org/pwsafe/releases/pwsafe-$pkgver.tar.gz"
-_builddir="$srcdir/$pkgname-$pkgver"
+builddir="$srcdir/$pkgname-$pkgver"
+
prepare() {
- local i
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
+ default_prepare || return 1
+ update_config_guess || return 1
}
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure --prefix=/usr --mandir=/usr/share/man && make && make check
}
package() {
- cd "$_builddir"
+ cd "$builddir"
make DESTDIR="$pkgdir" install
}