1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-22 07:48:50 -05:00

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() {
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
}

View File

@ -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
}