X-Original-To: alpine-aports@mail.alpinelinux.org Delivered-To: alpine-aports@mail.alpinelinux.org Received: from mail.alpinelinux.org (dallas-a1.alpinelinux.org [127.0.0.1]) by mail.alpinelinux.org (Postfix) with ESMTP id 42037DC109E for ; Thu, 21 Jan 2016 06:40:20 +0000 (UTC) Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com [209.85.217.174]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id D0F29DC0156 for ; Thu, 21 Jan 2016 06:40:19 +0000 (UTC) Received: by mail-lb0-f174.google.com with SMTP id cl12so17756122lbc.1 for ; Wed, 20 Jan 2016 22:40:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=7wv2iJTrdn6gkPskalW6P/EZMivzv3nz5xt9cMilABo=; b=XsjXy9BMZ06K9wgPbDwgv07jsbaRgSv/BOcIZOcHvH58mpdwnG6yk2q2dN40OugYez WTIiwRNwdFqSOFgl73KeyEn9O0aan1GJjj4MOzGlMKfnMbGjQ2o+yCnDpOyacxx0nTd4 FofGD5r/EZ7mhxabKCRxv8nOMPwi3JfVSspWdZWGiAW3PmHd4OhCni+/mLhiiGYZyCsE z6Y7P2NCDhGicj7EI4gk9dcTnmF4MIQZmPQnm8NEOFAC3p4Tbs3MbMMNupSAwXLjB9+x 2bQLDn9wiCAoGAaeaJgnkNVAUfkqs2t0QEfTDB5R0dvonKqHipvPtLY748SsKOMdlSL3 YHpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :in-reply-to:references:mime-version:content-type :content-transfer-encoding; bh=7wv2iJTrdn6gkPskalW6P/EZMivzv3nz5xt9cMilABo=; b=cKiJ4yrgtKKBWNxuWBC8p/aNtt33DrXg5RTc/9luWLQxq1xe99IqvTAkhrxA5mr+1q qcJBTRRPiDfEQ2L6vNmhcMi6xQ7kW/IjnklD0V0nd/ch7qUvZZdNN1ZVZfXDxawu4exf tU3s/t5Kf+aC8ZWO7P1FGZkIzOKSocWiO/1pFx9HbV8N2AuxBbuN7O1qc7fEbRGlPR6o vn/tsNgpgIX0SWMT/922P7pP21IMc0D/7hCcWDcoDDsnAS083bbmv1tT+DJxic1LgDXx TjdWEidCklFN/+2nSUSkCwUwGDkLRcJFxkOX0oyMKoDrporocVQvosdMh0DXPnjo9jt5 1ZZw== X-Gm-Message-State: ALoCoQmhoFiQfMxlL1D2cXs1TQAJvLnSUMPoJa0Lx5AJFN9TNt6f194mKVWDrtp8T7mI9qJ2nwbekkJ8MHjpw3YFRBVL/DvGig== X-Received: by 10.112.209.2 with SMTP id mi2mr12414088lbc.139.1453358417745; Wed, 20 Jan 2016 22:40:17 -0800 (PST) Received: from vostro ([2001:1bc8:101:f402:21a:9fff:fe0c:4022]) by smtp.gmail.com with ESMTPSA id 64sm5260546lfx.19.2016.01.20.22.40.16 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 20 Jan 2016 22:40:17 -0800 (PST) Sender: =?UTF-8?Q?Timo_Ter=C3=A4s?= Date: Thu, 21 Jan 2016 08:40:08 +0200 From: Timo Teras To: Valery Kartel Cc: alpine-aports@lists.alpinelinux.org Subject: Re: [alpine-aports] [PATCH] main/file: libmagic library moved to separate subpackage. minor APKBUILD cleanups Message-ID: <20160121084008.19689e2c@vostro> In-Reply-To: <1453303190-30557-1-git-send-email-valery.kartel@gmail.com> References: <1453303190-30557-1-git-send-email-valery.kartel@gmail.com> X-Mailer: Claws Mail 3.13.1 (GTK+ 2.24.28; x86_64-alpine-linux-musl) X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP On Wed, 20 Jan 2016 17:19:50 +0200 Valery Kartel wrote: > --- > main/file/APKBUILD | 28 ++++++++++++---------------- > 1 file changed, 12 insertions(+), 16 deletions(-) Looks mostly good. There's one comment inline that needs changing. Additionally, could you format the commit message so that the first line of the commit message is a concise abbreviation, and the explanation goes on lines 3+. So for example on this commit, just: main/file: split libmagic and cleanups ... would be sufficient. We usually don't use dots on the first line. The main reason is that 'git shortlog' will show only the first line, and it should not be too long. 'git log' will show the full commit log and e.g. cgit formats it so that the first line is in bold, the line 2 is expected empty, and line 3+ is plain text. Thanks. > diff --git a/main/file/APKBUILD b/main/file/APKBUILD > index ceff2e6..6fdc2e5 100644 > --- a/main/file/APKBUILD > +++ b/main/file/APKBUILD > @@ -1,32 +1,22 @@ > +# Contributor: Valery Kartel > # Maintainer: Natanael Copa > pkgname=file > pkgver=5.25 > -pkgrel=0 > +pkgrel=1 > pkgdesc="File type identification utility" > url="http://www.darwinsys.com/file/" > arch="all" > license="BSD" > depends="" > -source="ftp://ftp.astron.com/pub/file/file-$pkgver.tar.gz > - " > -subpackages="$pkgname-dev $pkgname-doc" > +source="ftp://ftp.astron.com/pub/file/file-$pkgver.tar.gz" > > -_builddir="$srcdir/$pkgname-$pkgver" > -prepare() { > - cd "$_builddir" > - update_config_sub || return 1 > - for i in $source; do > - case $i in > - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return > 1;; > - esac > - done > -} > +subpackages="$pkgname-dev $pkgname-doc libmagic" > + > +_builddir="$srcdir"/$pkgname-$pkgver > > build() { > cd "$_builddir" > ./configure \ > - --build=$CBUILD \ > - --host=$CHOST \ Please don't remove --build and --host. They are needed for bootstrapping new architectures. And if and when we want to support cross-building. > --prefix=/usr \ > --datadir=/usr/share \ > || return 1 > @@ -39,6 +29,12 @@ package() { > make DESTDIR="$pkgdir" install || return 1 > } > > +libmagic() { > + pkgdesc="File type identification library" > + mkdir -p "$subpkgdir"/usr > + mv "$pkgdir"/usr/lib "$pkgdir"/usr/share "$subpkgdir"/usr > +} > + > md5sums="e6a972d4e10d9e76407a432f4a63cd4c file-5.25.tar.gz" > sha256sums="3735381563f69fb4239470b8c51b876a80425348b8285a7cded8b61d6b890eca > file-5.25.tar.gz" > sha512sums="4a5176a7e80df2bb7e45916490433d22eb98a442d49d04146afcbdcf92ff619ea3e73e95c8991e6b6a0628efb9d127bfa4aafc1cae523f8261ca693bc5e13402 > file-5.25.tar.gz" --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---