summaryrefslogtreecommitdiff
path: root/src/stage2/patches/libpsl.patch
blob: 54915477c4aa300f62dbea72382914cf0a76cf61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- a/PKGBUILD	2018-02-16 14:38:32.235244930 +0100
+++ b/PKGBUILD	2018-02-16 14:41:16.650413298 +0100
@@ -8,7 +8,7 @@ pkgdesc='Public Suffix List library'
 url='https://github.com/rockdaboot/libpsl'
 arch=('x86_64')
 license=('MIT')
-depends=('libidn2' 'libunistring')
+depends=('libidn2' 'libunistring' 'publicsuffix-list')
 makedepends=('libxslt' 'python' 'publicsuffix-list' 'gtk-doc')
 provides=('libpsl.so')
 source=(https://github.com/rockdaboot/libpsl/releases/download/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.gz)
@@ -23,14 +23,13 @@ prepare() {
 build() {
   cd ${pkgname}-${pkgver}
   ./configure \
+    --host=@CHOST@ --build=@BUILDHOST@ \
     --prefix=/usr \
     --disable-static \
     --disable-dependency-tracking \
-    --enable-man \
-    --enable-gtk-doc \
     --enable-{builtin,runtime}=libidn2 \
-    --with-psl-file=/usr/share/publicsuffix/effective_tld_names.dat \
-    --with-psl-testfile=/usr/share/publicsuffix/test_psl.txt
+    --with-psl-file=@SYSROOT@/usr/share/publicsuffix/effective_tld_names.dat \
+    --with-psl-testfile=@SYSROOT@/usr/share/publicsuffix/test_psl.txt
   LC_CTYPE=en_US.UTF-8 make
 }