summaryrefslogtreecommitdiff
path: root/pkgconf
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2020-03-30 23:00:12 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2020-03-30 23:00:12 -0400
commit0f7fc864d98d3e8a852d3a6a835ae3331fde1bad (patch)
tree24b4ac4b7a476b0bb1607476531c5ba1a5f63a7e /pkgconf
parent39c272221a8baf3b3f2768d9de4f61abea57cf1f (diff)
downloadspm_packages-0f7fc864d98d3e8a852d3a6a835ae3331fde1bad.tar.gz
Current state
Diffstat (limited to 'pkgconf')
-rw-r--r--pkgconf/build.sh39
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgconf/build.sh b/pkgconf/build.sh
new file mode 100644
index 0000000..a865902
--- /dev/null
+++ b/pkgconf/build.sh
@@ -0,0 +1,39 @@
+#!/bin/bash
+name=pkgconf
+version=1.6.3
+revision=0
+sources=(
+ "https://github.com/${name}/${name}/archive/${name}-${version}.tar.gz"
+)
+build_depends=(
+ "automake"
+ "autoconf"
+ "m4"
+ "libtool"
+)
+depends=()
+
+function prepare() {
+ tar xf ${name}-${version}.tar.gz
+ # an ugly release tag makes for an ugly directory, fyi
+ cd ${name}-${name}-${version}
+}
+
+function build() {
+ ./autogen.sh
+ ./configure --prefix="${_prefix}" \
+ --sysconfdir="${_prefix}/etc" \
+ --with-pkg-config-dir="${_prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:/usr/lib64/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig" \
+ --with-system-libdir="${_prefix}/lib" \
+ --with-system-includedir="${_prefix}/include"
+ make -j${_maxjobs}
+}
+
+function package() {
+ make install DESTDIR="${_pkgdir}"
+ ln -s pkgconf "${_pkgdir}${_prefix}/bin/pkg-config"
+ ln -s pkgconf "${_pkgdir}${_prefix}/bin/x86_64-pc-linux-gnu-pkg-config"
+ ln -s pkgconf.1 "${_pkgdir}${_prefix}/share/man/man1/pkg-config.1"
+}
+
+