summaryrefslogtreecommitdiffstats
path: root/proto/PKGBUILD-split.proto
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2013-03-10 20:56:12 +0100
committerAllan McRae <allan@archlinux.org>2013-09-04 01:51:20 +0200
commit5f80d7afbd45100f5b5d28e43a9d9a80dde4b559 (patch)
tree205d2a8cd577b37305692a172606b349143812fb /proto/PKGBUILD-split.proto
parent8a72761743d746ed0a9b8b1201672e8ea0b8af4d (diff)
downloadpacman-5f80d7afbd45100f5b5d28e43a9d9a80dde4b559.tar.gz
pacman-5f80d7afbd45100f5b5d28e43a9d9a80dde4b559.tar.xz
proto: remove redundancy in cd for each function
Signed-off-by: Dave Reisner <dreisner@archlinux.org> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'proto/PKGBUILD-split.proto')
-rw-r--r--proto/PKGBUILD-split.proto8
1 files changed, 4 insertions, 4 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
}