summaryrefslogtreecommitdiffstats
path: root/PKGBUILD-split.proto
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2009-04-06 04:12:28 +0200
committerDan McGee <dan@archlinux.org>2009-04-06 04:12:28 +0200
commitf385242f99a732c321aea4fe39b7c7b3fcc8d17f (patch)
treeb42edd0ad11f4581b3ea448fc513e45ea141ceff /PKGBUILD-split.proto
parent5fcc9ae7f4cb4044ed0a7e4c7b06567256d5f36a (diff)
parent442b91a5dd522596f55caec40e0026ef65ac2479 (diff)
downloadpacman-f385242f99a732c321aea4fe39b7c7b3fcc8d17f.tar.gz
pacman-f385242f99a732c321aea4fe39b7c7b3fcc8d17f.tar.xz
Merge commit 'allan/working'
Diffstat (limited to 'PKGBUILD-split.proto')
-rw-r--r--PKGBUILD-split.proto7
1 files changed, 5 insertions, 2 deletions
diff --git a/PKGBUILD-split.proto b/PKGBUILD-split.proto
index 35fb22b9..0baa4964 100644
--- a/PKGBUILD-split.proto
+++ b/PKGBUILD-split.proto
@@ -5,6 +5,7 @@
# Contributor: Your Name <youremail@domain.com>
pkgname=('pkg1' 'pkg2')
+pkgbase=('pkg')
pkgver=VERSION
pkgrel=1
pkgdesc=""
@@ -20,12 +21,12 @@ replaces=()
backup=()
options=()
install=
-source=($pkgname-$pkgver.tar.gz)
+source=($pkgbase-$pkgver.tar.gz)
noextract=()
md5sums=() #generate with 'makepkg -g'
build() {
- cd "$srcdir/$pkgname-$pkgver"
+ cd "$srcdir/$pkgbase-$pkgver"
./configure --prefix=/usr
make || return 1
}
@@ -44,6 +45,7 @@ package_pkg1() {
options=()
install=
+ cd "$srcdir/$pkgbase-$pkgver"
make DESTDIR="$pkgdir/" install-pkg1
}
@@ -51,5 +53,6 @@ package_pkg2() {
# options and directives overrides
pkgdesc=""
+ cd "$srcdir/$pkgbase-$pkgver"
make DESTDIR="$pkgdir/" install-pkg2
}