bash_completion: fix the recipe and add support for pkgman and finddir

This commit is contained in:
Kostadin Damyanov
2015-09-24 00:15:45 +03:00
parent e51e57ff25
commit dba1be760e
3 changed files with 121 additions and 16 deletions

View File

@@ -11,12 +11,14 @@ programmable completion routines for the most common Linux/UNIX commands, \
reducing the amount of typing sysadmins and programmers need to do on \
a daily basis."
HOMEPAGE="http://bash-completion.alioth.debian.org/"
COPYRIGHT="2006-2014 Debian Project"
LICENSE="GNU GPL v2"
REVISION="2"
SOURCE_URI="http://bash-completion.alioth.debian.org/files/bash-completion-$portVersion.tar.bz2"
CHECKSUM_SHA256="2b606804a7d5f823380a882e0f7b6c8a37b0e768e72c3d4107c51fbe8a46ae4f"
SOURCE_DIR="bash-completion-$portVersion"
REVISION="1"
LICENSE="GNU GPL v2"
COPYRIGHT="2006-2014 Debian Project"
PATCHES="bash_completion-haiku.patch"
ARCHITECTURES="any"
PROVIDES="
@@ -30,8 +32,11 @@ BUILD_REQUIRES="
"
BUILD_PREREQUIRES="
haiku
cmd:bash
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:awk
cmd:bash
cmd:make
"
@@ -42,17 +47,10 @@ USER_SETTINGS_FILES="
settings/profile.d/bash_completion.sh
"
PATCH()
{
cd completions
for file in *
do
chmod +x $file
done
}
BUILD()
{
aclocal
automake
runConfigure ./configure
make $jobArgs
}
@@ -60,6 +58,4 @@ BUILD()
INSTALL()
{
make install
chmod +x $settingsDir/profile.d/bash_completion.sh
chmod +x $dataDir/bash-completion/bash_completion
}