X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@lists.alpinelinux.org Received: from mail43.e.nsc.no (mail43.e.nsc.no [193.213.115.43]) by lists.alpinelinux.org (Postfix) with ESMTP id A46CE17003B8C for ; Mon, 27 Oct 2008 14:53:05 +0000 (UTC) Received: from mail.nor.wtbts.org ([213.234.126.131]) by mail43.nsc.no (8.13.8/8.13.5) with ESMTP id m9REr3Tq028757 for ; Mon, 27 Oct 2008 15:53:03 +0100 (MET) Received: from mail.nor.wtbts.org (localhost [127.0.0.1]) by mail.nor.wtbts.org (Postfix) with ESMTP id C48C3E1AFA03 for ; Mon, 27 Oct 2008 15:53:02 +0100 (CET) Received: from [192.168.65.211] (nc.nor.wtbts.org [192.168.65.211]) by mail.nor.wtbts.org (Postfix) with ESMTP id A9A1CE1AE24A for ; Mon, 27 Oct 2008 15:53:02 +0100 (CET) Subject: [alpine-devel] next generation build scripts - build Alpine without gentoo From: Natanael Copa To: Alpine Development Content-Type: text/plain Date: Mon, 27 Oct 2008 15:53:02 +0100 Message-Id: <1225119182.25487.36.camel@nc.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.22.3.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Hi, I have started with some experiments with building things without gentoo. Those of you have have tried build alpine knows that gentoo makes things more complicated to get started, even if it certainly makes it easy for me to maintain it as it is. I have a script called 'abuild' thats something in between Arch Linux's makepkg[1], and gentoo's ebuild[2]. The build scripts is very similar to Arch's PKGBUILD[3]. Main difference is that the APKBUILDs are supposed to work without bash so no arrays. I have also made the md5sums to be the raw output of md5sum, rather than using openssl as makepkg does. abuild is used in a similar way that ebuild is. You run abuild with an optional list of what you want to do. for example, if you only want to fetch the sources you run 'abuild fetch'. If you want to fetch sources and generate the md5sums you run: 'abuild fetch checksum'. The main reason i didn't just use makepkg from Arch is that we need support for splitting packages (and it was simple enough so i could just write a small script from scratch rather than trying to adopt makepkg). Right now I have implemented it by running the script recursively and only run a func that changes the pkgname. I'm not sure that this is the best way to handle it so it would be nice if you had a look at the script, the example APKBUILDs and gave some feedback. Please have a look at the abuild and aports repositories: http://dev.alpinelinux.org/cgit/ [1] http://www.archlinux.org/pacman/makepkg.8.html [2] http://linuxreviews.org/man/ebuild/ [3] http://www.archlinux.org/pacman/PKGBUILD.5.html --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---