proto: remove redundancy in cd for each function

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Dave Reisner 2013-03-10 15:56:12 -04:00 committed by Allan McRae
parent 8a72761743
commit 5f80d7afbd
2 changed files with 7 additions and 7 deletions

View File

@ -35,13 +35,13 @@ prepare() {
} }
build() { build() {
cd "$srcdir/$pkgbase-$pkgver" cd "$pkgbase-$pkgver"
./configure --prefix=/usr ./configure --prefix=/usr
make make
} }
check() { check() {
cd "$srcdir/$pkgname-$pkgver" cd "$pkgname-$pkgver"
make -k check make -k check
} }
@ -65,7 +65,7 @@ package_pkg1() {
install= install=
changelog= changelog=
cd "$srcdir/$pkgbase-$pkgver" cd "$pkgbase-$pkgver"
make DESTDIR="$pkgdir/" install-pkg1 make DESTDIR="$pkgdir/" install-pkg1
} }
@ -73,6 +73,6 @@ package_pkg2() {
# options and directives overrides # options and directives overrides
pkgdesc="" pkgdesc=""
cd "$srcdir/$pkgbase-$pkgver" cd "$pkgbase-$pkgver"
make DESTDIR="$pkgdir/" install-pkg2 make DESTDIR="$pkgdir/" install-pkg2
} }

View File

@ -35,17 +35,17 @@ prepare() {
} }
build() { build() {
cd "$srcdir/$pkgname-$pkgver" cd "$pkgname-$pkgver"
./configure --prefix=/usr ./configure --prefix=/usr
make make
} }
check() { check() {
cd "$srcdir/$pkgname-$pkgver" cd "$pkgname-$pkgver"
make -k check make -k check
} }
package() { package() {
cd "$srcdir/$pkgname-$pkgver" cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir/" install make DESTDIR="$pkgdir/" install
} }