aboutsummaryrefslogtreecommitdiffstats
path: root/testing/atool/APKBUILD
blob: 2f05471a8520c6b3fcd1414a6a50b1258aa36d68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Contributor: Camille Scholtz <onodera@openmailbox.org>
# Maintainer: Camille Scholtz <onodera@openmailbox.org>
pkgname=atool
pkgver=0.39.0
pkgrel=3
pkgdesc="a Perl script for managing file archives of various types"
options="!check" # No testsuite
url="https://nongnu.org/atool/"
arch="noarch"
license="GPL-3.0-or-later"
depends="perl"
subpackages="$pkgname-doc $pkgname-bash-completion:bashcomp:noarch"
source="https://savannah.nongnu.org/download/$pkgname/$pkgname-$pkgver.tar.gz"

build() {
	./configure --prefix=/usr
}

package() {
	make DESTDIR="$pkgdir" install
}

bashcomp() {
	depends=""
	pkgdesc="Bash completions for $pkgname"
	install_if="$pkgname=$pkgver-r$pkgrel bash-completion"

	install -Dm644 "$builddir"/extra/bash-completion-atool_0.1-1 \
			"$subpkgdir"/usr/share/bash-completion/completions/atool
}

sha512sums="2011c13f510a140e71d26f9eac60d07f2cb9004dc278303fd37c5c7f78a6a2366ad9193e7b4e015d9fba8218c59205a6339189ae4775b0afc42328f9607524d3  atool-0.39.0.tar.gz"