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:
parent
8a72761743
commit
5f80d7afbd
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user