summaryrefslogtreecommitdiff
path: root/user/libpsl/APKBUILD
diff options
context:
space:
mode:
authorKiyoshi Aman <kiyoshi.aman+apkfission@gmail.com>2018-09-03 12:01:45 -0500
committerKiyoshi Aman <kiyoshi.aman+apkfission@gmail.com>2018-09-03 12:01:45 -0500
commit84f5c390443a4dd107c408bef0813c68d7cccd8f (patch)
tree60822fa005e1b633522e678f0be348267f95d802 /user/libpsl/APKBUILD
parentdf5fcf4c4bcbda3da6fc728c2456391541bbf5a2 (diff)
downloadpackages-84f5c390443a4dd107c408bef0813c68d7cccd8f.tar.gz
packages-84f5c390443a4dd107c408bef0813c68d7cccd8f.tar.bz2
packages-84f5c390443a4dd107c408bef0813c68d7cccd8f.tar.xz
packages-84f5c390443a4dd107c408bef0813c68d7cccd8f.zip
user/libpsl: new package
Diffstat (limited to 'user/libpsl/APKBUILD')
-rw-r--r--user/libpsl/APKBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/user/libpsl/APKBUILD b/user/libpsl/APKBUILD
new file mode 100644
index 000000000..9f4e97f9e
--- /dev/null
+++ b/user/libpsl/APKBUILD
@@ -0,0 +1,38 @@
+# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
+# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
+pkgname=libpsl
+pkgver=0.20.2
+pkgrel=0
+pkgdesc="C library for examining the Public Suffix List"
+url="https://rockdaboot.github.io/libpsl"
+arch="all"
+license="MIT AND BSD-3-Clause"
+makedepends="python3 libidn2-dev libunistring-dev"
+subpackages="$pkgname-dev $pkgname-doc"
+source="https://github.com/rockdaboot/libpsl/releases/download/libpsl-$pkgver/libpsl-$pkgver.tar.gz
+ use-python3.patch"
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="fa9f6f7f0447d9fe00f5dfca5262c56ff26217eea44d0f7fc1e5d982224c41874e753f0aa06dd9e5d7d03d4f04e3dacd4f36034cc8dd0fc6e2c28b49a23e62fe libpsl-0.20.2.tar.gz
+00c9c09bac334efcd7ae6240b740ac88453425cc380cc23b443a0579f4ccabf86eafdb90f5f05027cc55ee20f6c1d4388939792a55cd95705d5e6919d40b30e5 use-python3.patch"