From 5f80d7afbd45100f5b5d28e43a9d9a80dde4b559 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sun, 10 Mar 2013 15:56:12 -0400 Subject: proto: remove redundancy in cd for each function Signed-off-by: Dave Reisner Signed-off-by: Allan McRae --- proto/PKGBUILD-split.proto | 8 ++++---- proto/PKGBUILD.proto | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/proto/PKGBUILD-split.proto b/proto/PKGBUILD-split.proto index 54e55579..fb4ca7b8 100644 --- a/proto/PKGBUILD-split.proto +++ b/proto/PKGBUILD-split.proto @@ -35,13 +35,13 @@ prepare() { } build() { - cd "$srcdir/$pkgbase-$pkgver" + cd "$pkgbase-$pkgver" ./configure --prefix=/usr make } check() { - cd "$srcdir/$pkgname-$pkgver" + cd "$pkgname-$pkgver" make -k check } @@ -65,7 +65,7 @@ package_pkg1() { install= changelog= - cd "$srcdir/$pkgbase-$pkgver" + cd "$pkgbase-$pkgver" make DESTDIR="$pkgdir/" install-pkg1 } @@ -73,6 +73,6 @@ package_pkg2() { # options and directives overrides pkgdesc="" - cd "$srcdir/$pkgbase-$pkgver" + cd "$pkgbase-$pkgver" make DESTDIR="$pkgdir/" install-pkg2 } diff --git a/proto/PKGBUILD.proto b/proto/PKGBUILD.proto index 5b854ceb..1380a0f6 100644 --- a/proto/PKGBUILD.proto +++ b/proto/PKGBUILD.proto @@ -35,17 +35,17 @@ prepare() { } build() { - cd "$srcdir/$pkgname-$pkgver" + cd "$pkgname-$pkgver" ./configure --prefix=/usr make } check() { - cd "$srcdir/$pkgname-$pkgver" + cd "$pkgname-$pkgver" make -k check } package() { - cd "$srcdir/$pkgname-$pkgver" + cd "$pkgname-$pkgver" make DESTDIR="$pkgdir/" install } -- cgit v1.2.3-70-g09d2