X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@lists.alpinelinux.org Received: from mail-bw0-f222.google.com (mail-bw0-f222.google.com [209.85.218.222]) by lists.alpinelinux.org (Postfix) with ESMTP id 8DBCF1EB58B for ; Fri, 30 Oct 2009 10:47:35 +0000 (UTC) Received: by bwz22 with SMTP id 22so3564925bwz.25 for ; Fri, 30 Oct 2009 03:47:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:content-type :date:message-id:mime-version:x-mailer:content-transfer-encoding; bh=VPyvT8wIqfkLUvmkdOEl+BnJRPTYbhZQXCNsMhtLpQg=; b=ApMYAAHAdyYpxxfmVZwGaTCAaZc7rfpkc7ZSI3UAef/oX+ykTSen7yhuw0u/ynNWse H0XeozOawJb1goHtns0MMKCY1bCJDH4orxeHFhHUcK4jDkO9gc084FX7NSaVhW8dxD1o vs9hT9WqJ2av19uFraD6zjLf1TgtHDFKFkm8Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; b=YRK0XmVYAgm8ZWSHsyBbjq1m6Bn/lyEqAauBqFA2ExPxTcxNnsap4jQFKnVFlYroyX MdSYV5Rj7LvFoLps7utDgEG/MoRIwnK6vcKn1NQ12sGNiPkpL1a32HsZ43OnBC5wBSMn XyZSAJr2jVG4bsGrRr7w2t3Ac6auKt70lp45M= Received: by 10.204.10.6 with SMTP id n6mr996014bkn.27.1256899654111; Fri, 30 Oct 2009 03:47:34 -0700 (PDT) Received: from ?10.65.65.1? ([90.149.48.245]) by mx.google.com with ESMTPS id e17sm1531062fke.56.2009.10.30.03.47.33 (version=SSLv3 cipher=RC4-MD5); Fri, 30 Oct 2009 03:47:33 -0700 (PDT) Subject: [alpine-devel] changes in APKBUILD From: Natanael Copa To: alpine-devel@lists.alpinelinux.org Content-Type: text/plain; charset="UTF-8" Date: Fri, 30 Oct 2009 11:49:50 +0100 Message-ID: <1256899790.25733.18.camel@ncopa-desktop.nor.wtbts.net> X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: Mime-Version: 1.0 X-Mailer: Evolution 2.28.1 Content-Transfer-Encoding: 7bit Hi, In order to utilize multicores better the format of APKBUILD have changed slightly. While I was there I also added a separate stage for patching. So new format is: prepare() { cd "$srcdir"/$pkgname-$pkgver # do patching here } build() { cd "$srcdir"/$pkgname-$pkgver ./configure --prefix=/usr make } package() { cd "$srcdir"/$pkgname-$pkgver make DESTDIR="$pkgdir" install } I was thinking of using a new global variable "builddir" which could be defined in global scope. Then, before running prepare, build and package, I could do soemthing like: if [ -n "$builddir" ] && [ -d "$builddir" ]; then cd "$builddir" else cd "$startdir" fi That way the APKBUILD could look like: builddir="$srcdir"/$pkgname-$pkgver prepare() { # do patching here } build() { ./configure --prefix=/usr make } package() { make DESTDIR="$pkgdir" install } what do you think? Other ideas? -nc --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---