summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2019-11-25 06:29:40 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2019-11-25 06:29:40 +0100
commit866fbe8dd9976a24b4c216d26197b1240e919ff9 (patch)
tree2e16997ef917fc26204691e9e9861d6e29402494 /core
parent9712ccfecd6f0947564e94e50960c6636057aded (diff)
downloadpackages-866fbe8dd9976a24b4c216d26197b1240e919ff9.tar.xz
core/pkgconf: fixed for correct 32-bit personality
Diffstat (limited to 'core')
-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