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 9FD03DC01FC for ; Sat, 23 Jan 2016 21:17:45 +0000 (UTC) Received: from mail-lf0-f44.google.com (mail-lf0-f44.google.com [209.85.215.44]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 28755DC00AC for ; Sat, 23 Jan 2016 21:17:44 +0000 (UTC) Received: by mail-lf0-f44.google.com with SMTP id h129so66014994lfh.3 for ; Sat, 23 Jan 2016 13:17:44 -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=Z9CoqDDZtzsxcgbLh9YnEEdd8qG8l2ShnkoKdZQ8fEE=; b=B7/15ezBCZkMjZRZMMrYeUowhNbA2I3ME0siDCG2WqLluH2ETMdgDs9BN3msJPCivB wx1Pm273R9MaYi7H17FpTTOdHGmMu+NBFIOp4SkqEw4rbnxFDt//gN/viKUYAD3rVHQ6 8yGz97yLJv9gCXeKRBWi60bjgs1Ah3ndorqnV16b6mtL49EGRYUiLIkgb+DHSq/2D/tN kx2BIML9fhbMfc6xnrzLJvQQV59nUid2FHZFccYzIB+AENfbVJv2oTSdXcjUdvIyGeS/ Ua8aucPNFSy1sVp6h2e/t1JAPADlL6LiksIIM39Asm2urk558aYIIbYaVjO29zlNiW/v gh2Q== 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=Z9CoqDDZtzsxcgbLh9YnEEdd8qG8l2ShnkoKdZQ8fEE=; b=KIwb3Dbt8SI1lHzaPZXFQ7DJq35/A9HgfBw2I6gbg666cl93jvVcUzQlEbCLHvn/L4 lrbwvFsU80VyR8LUYbUIS0zkBkgTU3Jc14JRhSqzEoSU7EYdYD7Wts2jdU89He3yPPw/ /XfTuwTLASLwGx4kJSVyYSOgyrO3v2QuJEfw7ypQIhHLL4nuFmKRC5gVINHMNRkGnWXQ UjU9DIRlPcX30Mp8RdWrNWz8cHZDrtkWuaJhIjXpWnIqSs+PAhayOpiIGvtqGkM7x7D5 jeytPQ4ebiwQ/LqpzP9P6T/VU5qWRJ/3psnmx23iLz9cLLcoL3k14fKRZo2UItWmfAac nocA== X-Gm-Message-State: AG10YOS2LNJd6xbhg1oEAge24kXEcRjq26NEpYGkNqIok8UWBK/0Vwz9FgmXC0xRot9pzg== X-Received: by 10.25.20.22 with SMTP id k22mr3662320lfi.152.1453583862255; Sat, 23 Jan 2016 13:17:42 -0800 (PST) Received: from vostro ([2001:1bc8:101:f402:21a:9fff:fe0c:4022]) by smtp.gmail.com with ESMTPSA id jx8sm1683945lbc.29.2016.01.23.13.17.41 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 23 Jan 2016 13:17:42 -0800 (PST) Sender: =?UTF-8?Q?Timo_Ter=C3=A4s?= Date: Sat, 23 Jan 2016 23:17:39 +0200 From: Timo Teras To: =?UTF-8?B?U8O2cmVu?= Tempel Cc: alpine-aports@lists.alpinelinux.org Subject: Re: [alpine-aports] [PATCH] main/mpc: add bash completion subpackage Message-ID: <20160123231739.6cfb577a@vostro> In-Reply-To: <1453557412-7367-1-git-send-email-soeren+git@soeren-tempel.net> References: <1453557412-7367-1-git-send-email-soeren+git@soeren-tempel.net> 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=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: ClamAV using ClamSMTP On Sat, 23 Jan 2016 14:56:52 +0100 S=C3=B6ren Tempel wrote: > --- > main/mpc/APKBUILD | 34 +++++++++++++++++++++++++++------- > 1 file changed, 27 insertions(+), 7 deletions(-) >=20 > diff --git a/main/mpc/APKBUILD b/main/mpc/APKBUILD > index 13de645..e322726 100644 > --- a/main/mpc/APKBUILD > +++ b/main/mpc/APKBUILD > =20 > package() { > - cd "$srcdir"/mpc-$pkgver > + cd "$_builddir" > make DESTDIR=3D"$pkgdir" install || return 1 > + > + # Remove the bash completion file from the -doc subpackage. > + rm -f > "$pkgdir"/usr/share/doc/$pkgname/$pkgname-completion.bash } > + > +bashcomp() { > + depends=3D"" > + pkgdesc=3D"Bash completions for $pkgname" > + install_if=3D"$pkgname=3D$pkgver-r$pkgrel bash-completion" > + arch=3D"noarch" > + > + install -Dm644 "$_builddir"/doc/$pkgname-completion.bash \ > + "$subpkgdir"/usr/share/bash-completion/completions/$pkgname > || return 1 +} > + Normally this is done so that the split function moves from $pkgdir to $subpkg dir. Instead of package() removing, and split function re-installing it. Otherwise looks good. --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---