summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/pkgconf/PKGBUILD17
-rw-r--r--core/pkgconf/i686-pc-linux-gnu.personality5
2 files changed, 22 insertions, 0 deletions
diff --git a/core/pkgconf/PKGBUILD b/core/pkgconf/PKGBUILD
new file mode 100644
index 00000000..d323fe0c
--- /dev/null
+++ b/core/pkgconf/PKGBUILD
@@ -0,0 +1,17 @@
+# use i686 personality as main personality, no lib32, no 64-bit
+
+source=(${source[@]//x86_64-pc-linux-gnu.personality/})
+sha256sums=(${sha256sums[@]//c8297817ba0b57d003878db247ff34b4c47a7594c9f67dcfe8ff8d6567956cd5/})
+sha256sums[1]='4df633eb84275d51c94bc70a6c56def678ad76dd58573a2ac9b1360732883d96'
+
+eval "$(
+ declare -f package | \
+ sed '
+ /install/s/x86_64-pc-linux-gnu.personality//
+ /ln.*x86_64-pc-linux-gnu-pkg-config/d
+ '
+)"
+
+# temporary fix for download sources
+# (https://bugs.archlinux.org/task/64633)
+source[0]="git+https://git.sr.ht/~kaniini/pkgconf#commit=$_commit"
diff --git a/core/pkgconf/i686-pc-linux-gnu.personality b/core/pkgconf/i686-pc-linux-gnu.personality
new file mode 100644
index 00000000..96e52a29
--- /dev/null
+++ b/core/pkgconf/i686-pc-linux-gnu.personality
@@ -0,0 +1,5 @@
+Triplet: i686-pc-linux-gnu
+SysrootDir: /
+DefaultSearchPaths: /usr/lib/pkgconfig:/usr/share/pkgconfig
+SystemIncludePaths: /usr/include
+SystemLibraryPaths: /usr/lib