pkgconf: adopted port
This commit is contained in:
parent
d8053cd589
commit
5ad78f9aa3
@ -1,5 +1,7 @@
|
||||
untrusted comment: verify with /etc/ports/contrib.pub
|
||||
RWSagIOpLGJF3xRZhZsXlRC6IGZ8vq+3dJv6cjtfsXY0m/qRnywRKx5BsRbngRkkjM8ryTGkhCGaW4UqlLkK7b7wxceSYbZaLAA=
|
||||
SHA256 (Pkgfile) = 3f716cd0c7d75f3310e0df6e805ea23f1d2fb0aaf7fb75e06ca49fa5702c8774
|
||||
RWSagIOpLGJF32V0RiI1NjWWLWhDX2iEsz8r9Nx6+5TWQlXmm5XohVTQUAA6xjlMU+kN0p5kyqi7cI7RJ9zqzDh+PE/PFSz1lgs=
|
||||
SHA256 (Pkgfile) = f3323a3a8ae9f7d89d9c53bb54f070cfd0ebe3544736e4e894c9956741f4afa3
|
||||
SHA256 (.footprint) = 1c0b2e1bcba00f63ef857ef0033e0305ff1ef4b5130eb350222e049db86b79a0
|
||||
SHA256 (pkgconf-1.7.3.tar.xz) = b846aea51cf696c3392a0ae58bef93e2e72f8e7073ca6ad1ed8b01c85871f9c0
|
||||
SHA256 (i686-pc-linux-gnu.personality) = 6697c6db7deaae269ea75624a70e80949241f2cf59a537f31ecfcac726d90bc1
|
||||
SHA256 (x86_64-pc-linux-gnu.personality) = c8297817ba0b57d003878db247ff34b4c47a7594c9f67dcfe8ff8d6567956cd5
|
||||
|
@ -1,21 +1,30 @@
|
||||
# Description: A system for managing library compile/link flags
|
||||
# URL: http://pkgconf.org
|
||||
# Maintainer: John Vogel, jvogel4 at stny dot rr dot com
|
||||
# Description: A system for managing library compile/link flags.
|
||||
# URL: https://git.sr.ht/~kaniini/pkgconf
|
||||
# Maintainer: Tim Biermann, tbier at posteo dot de
|
||||
# Depends on: meson ninja
|
||||
|
||||
name=pkgconf
|
||||
version=1.7.3
|
||||
release=1
|
||||
source=(http://distfiles.dereferenced.org/$name/$name-$version.tar.xz)
|
||||
source=(https://distfiles.dereferenced.org/pkgconf/$name-$version.tar.xz
|
||||
i686-pc-linux-gnu.personality x86_64-pc-linux-gnu.personality)
|
||||
|
||||
build() {
|
||||
cd $name-$version
|
||||
meson $name-$version build \
|
||||
--prefix=/usr \
|
||||
--buildtype=plain \
|
||||
-D tests=false
|
||||
ninja -C build
|
||||
DESTDIR=$PKG ninja -C build install
|
||||
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--with-system-libdir=/lib:/usr/lib
|
||||
install -Dt $PKG/usr/share/pkgconfig/personality.d -m644 \
|
||||
i686-pc-linux-gnu.personality \
|
||||
x86_64-pc-linux-gnu.personality
|
||||
ln -s pkgconf $PKG/usr/bin/i686-pc-linux-gnu-pkg-config
|
||||
ln -s pkgconf $PKG/usr/bin/x86_64-pc-linux-gnu-pkg-config
|
||||
ln -s pkgconf $PKG/usr/bin/pkg-config
|
||||
|
||||
make
|
||||
make install MANDIR=/usr/share/man/man1 DESTDIR=$PKG
|
||||
ln -s pkgconf.1 $PKG/usr/share/man/man1/pkg-config.1
|
||||
|
||||
rm -fr $PKG/usr/share/doc
|
||||
rm -rf $PKG/usr/share/doc
|
||||
}
|
||||
|
@ -1,7 +1,22 @@
|
||||
This port, pkgconf, can be used as a replacement for pkg-config.
|
||||
To accomplish that, you will need a symlink:
|
||||
# Part 1:
|
||||
|
||||
# ln -s pkgconf /usr/bin/pkg-config
|
||||
Please read up on the following ticket:
|
||||
https://todo.sr.ht/~kaniini/pkgconf/1
|
||||
|
||||
You should be aware that is conflicts with the core/pkg-config
|
||||
package, so the link is not automatically created.
|
||||
The gist: since we exchange pkg-config for pkgconf here, this should not be a
|
||||
problem, still, this is not 'nice'.
|
||||
|
||||
# Part 2:
|
||||
|
||||
#!/bin/sh
|
||||
#
|
||||
# This was originally my post-install for this port!
|
||||
# pkgconf and pkg-config are not meant to co-exist, but
|
||||
# the decision to swap them out is only yours to make!
|
||||
# Please review the consequences of this script!
|
||||
|
||||
alias="pkgconf: pkg-config"
|
||||
|
||||
if [ -z "$(grep "$alias" /var/lib/pkg/prt-get.aliases)" ]; then
|
||||
echo "$alias" >> /var/lib/pkg/prt-get.aliases
|
||||
fi
|
||||
|
5
pkgconf/i686-pc-linux-gnu.personality
Normal file
5
pkgconf/i686-pc-linux-gnu.personality
Normal file
@ -0,0 +1,5 @@
|
||||
Triplet: i686-pc-linux-gnu
|
||||
SysrootDir: /
|
||||
DefaultSearchPaths: /usr/lib32/pkgconfig:/usr/share/pkgconfig
|
||||
SystemIncludePaths: /usr/include
|
||||
SystemLibraryPaths: /usr/lib32
|
5
pkgconf/x86_64-pc-linux-gnu.personality
Normal file
5
pkgconf/x86_64-pc-linux-gnu.personality
Normal file
@ -0,0 +1,5 @@
|
||||
Triplet: x86_64-pc-linux-gnu
|
||||
SysrootDir: /
|
||||
DefaultSearchPaths: /usr/lib/pkgconfig:/usr/share/pkgconfig
|
||||
SystemIncludePaths: /usr/include
|
||||
SystemLibraryPaths: /usr/lib
|
Loading…
x
Reference in New Issue
Block a user