Skip to content
Snippets Groups Projects
Commit 8764a906 authored by Sören Tempel's avatar Sören Tempel
Browse files

testing/outils: Split package into multiple subpackages

parent e48d7b02
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net> # Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=outils pkgname=outils
pkgver=0.3 pkgver=0.3
pkgrel=2 pkgrel=3
pkgdesc="Port of some non-standard OpenBSD tools to Linux" pkgdesc="Port of some non-standard OpenBSD tools to Linux"
url="https://github.com/chneukirchen/outils" url="https://github.com/chneukirchen/outils"
arch="all" arch="all"
...@@ -11,7 +11,24 @@ depends="" ...@@ -11,7 +11,24 @@ depends=""
depends_dev="" depends_dev=""
makedepends="openssl-dev linux-headers" makedepends="openssl-dev linux-headers"
install="" install=""
subpackages="$pkgname-doc" subpackages="$pkgname-doc
$pkgname-sha256:_tool
$pkgname-lndir:_tool
$pkgname-rdate:_tool
$pkgname-calendar:_tool
$pkgname-lam:_tool
$pkgname-what:_tool
$pkgname-rs:_tool
$pkgname-unvis:_tool
$pkgname-gzsig:_tool
$pkgname-md5:_tool
$pkgname-sha1:_tool
$pkgname-apply:_tool
$pkgname-sha512:_tool
$pkgname-vis:_tool
$pkgname-signify:_tool
$pkgname-jot:_tool
$pkgname-cksum:_tool"
source="$pkgname-$pkgver.tar.gz::https://github.com/chneukirchen/$pkgname/archive/v$pkgver.tar.gz" source="$pkgname-$pkgver.tar.gz::https://github.com/chneukirchen/$pkgname/archive/v$pkgver.tar.gz"
_builddir="$srcdir"/$pkgname-$pkgver _builddir="$srcdir"/$pkgname-$pkgver
...@@ -30,10 +47,19 @@ build() { ...@@ -30,10 +47,19 @@ build() {
package() { package() {
make DESTDIR="$pkgdir" install \ make DESTDIR="$pkgdir" install \
-C "$_builddir" || return 1 -C "$_builddir" || return 1
}
_tool() {
local name=$(echo $subpkgname | cut -d '-' -f2)
pkgdesc="$name tool from $pkgname"
if [ name = "cksum" ]; then
depends="!coreutils $depends"
fi
# Don't conflict with main/coreutils. mkdir -p "$subpkgdir"/usr/bin
rm -f "$pkgdir"/usr/bin/cksum || return 1 mv "$pkgdir"/usr/bin/$name \
rm -f "$pkgdir"/usr/share/man/man1/cksum.1 || return 1 "$subpkgdir"/usr/bin/$name || return 1
} }
md5sums="cb5d6274c78fd5dab8d5612668db08a3 outils-0.3.tar.gz" md5sums="cb5d6274c78fd5dab8d5612668db08a3 outils-0.3.tar.gz"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment