summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2013-03-10 15:56:12 -0400
committerAllan McRae <allan@archlinux.org>2013-09-04 09:51:20 +1000
commit5f80d7afbd45100f5b5d28e43a9d9a80dde4b559 (patch)
tree205d2a8cd577b37305692a172606b349143812fb
parent8a72761743d746ed0a9b8b1201672e8ea0b8af4d (diff)
proto: remove redundancy in cd for each function
Signed-off-by: Dave Reisner <dreisner@archlinux.org> Signed-off-by: Allan McRae <allan@archlinux.org>
-rw-r--r--proto/PKGBUILD-split.proto8
-rw-r--r--proto/PKGBUILD.proto6
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
}