libxau: create _devel pkg, switch HOMEPAGE & SOURCE_URI to https. (#692)

Also drop unneeded {lib,devel}:libXau and only keep lowercase libxau.
This commit is contained in:
fbrosson
2016-07-13 21:23:57 +00:00
committed by GitHub
parent bb5502aee6
commit c0e373cad8
2 changed files with 34 additions and 14 deletions

View File

@@ -3,44 +3,47 @@ DESCRIPTION="LibXau manipulates .Xauthority files, used by xauth, X servers, \
and display managers to store shared secret data such as MIT-MAGIC-COOKIEs \ and display managers to store shared secret data such as MIT-MAGIC-COOKIEs \
used for authenticating X clients attempting to connect to an X server. used for authenticating X clients attempting to connect to an X server.
LibXau is used by both Xlib and XCB." LibXau is used by both Xlib and XCB."
HOMEPAGE="http://xorg.freedesktop.org/releases/individual/lib/" HOMEPAGE="https://www.x.org/"
COPYRIGHT="1988, 1993, 1994, 1998 The Open Group" COPYRIGHT="1988, 1993, 1994, 1998 The Open Group"
LICENSE="MIT (no promotion)" LICENSE="MIT (no promotion)"
REVISION="2" REVISION="3"
SOURCE_URI="http://xorg.freedesktop.org/releases/individual/lib/libXau-1.0.8.tar.bz2" SOURCE_URI="https://www.x.org/releases/individual/lib/libXau-$portVersion.tar.bz2"
CHECKSUM_SHA256="fdd477320aeb5cdd67272838722d6b7d544887dfe7de46e1e7cc0c27c2bea4f2" CHECKSUM_SHA256="fdd477320aeb5cdd67272838722d6b7d544887dfe7de46e1e7cc0c27c2bea4f2"
SOURCE_DIR="libXau-$portVersion" SOURCE_DIR="libXau-$portVersion"
PATCHES="libxau-1.0.8.patch" PATCHES="libxau-$portVersion.patchset"
ARCHITECTURES="x86_gcc2 x86 x86_64" ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86" SECONDARY_ARCHITECTURES="x86_gcc2 x86"
#TODO: make a _devel package ?
PROVIDES=" PROVIDES="
libxau$secondaryArchSuffix = $portVersion libxau$secondaryArchSuffix = $portVersion
lib:libxau$secondaryArchSuffix = $portVersion lib:libxau$secondaryArchSuffix = $portVersion
lib:libXau$secondaryArchSuffix = $portVersion
devel:libxau$secondaryArchSuffix = $portVersion
devel:libXau$secondaryArchSuffix = $portVersion
" "
REQUIRES=" REQUIRES="
haiku$secondaryArchSuffix haiku$secondaryArchSuffix
"
PROVIDES_devel="
libxau${secondaryArchSuffix}_devel = $portVersion
devel:libxau$secondaryArchSuffix = $portVersion
"
REQUIRES_devel="
libxau$secondaryArchSuffix == $portVersion base
xproto$secondaryArchSuffix xproto$secondaryArchSuffix
" "
BUILD_REQUIRES=" BUILD_REQUIRES="
haiku$secondaryArchSuffix haiku${secondaryArchSuffix}_devel
devel:xproto$secondaryArchSuffix xproto$secondaryArchSuffix
" "
BUILD_PREREQUIRES=" BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel
devel:util_macros$secondaryArchSuffix devel:util_macros$secondaryArchSuffix
cmd:autoconf
cmd:libtool
cmd:aclocal cmd:aclocal
cmd:make cmd:autoconf
cmd:gcc$secondaryArchSuffix cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix cmd:ld$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix cmd:pkg_config$secondaryArchSuffix
" "
@@ -55,6 +58,23 @@ BUILD()
INSTALL() INSTALL()
{ {
make install make install
prepareInstalledDevelLibs libXau prepareInstalledDevelLibs libXau
fixPkgconfig fixPkgconfig
if [ -n "$secondaryArchSuffix" ]; then
rm -rf $documentationDir
maybe_manDir_man3=
else
maybe_manDir_man3=$manDir/man3
fi
packageEntries devel \
$developDir \
$maybe_manDir_man3
}
TEST()
{
make check
} }