From 74395588b15672574ea8f2cc9eae02a43eac40af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Berk=20=C3=87akar?= Date: Tue, 10 Aug 2021 00:54:21 +0300 Subject: [PATCH] libmaxminddb packaged --- programming/library/libmaxminddb/actions.py | 26 +++++++++++ programming/library/libmaxminddb/pspec.xml | 48 +++++++++++++++++++++ 2 files changed, 74 insertions(+) create mode 100644 programming/library/libmaxminddb/actions.py create mode 100644 programming/library/libmaxminddb/pspec.xml diff --git a/programming/library/libmaxminddb/actions.py b/programming/library/libmaxminddb/actions.py new file mode 100644 index 0000000000..f1942712be --- /dev/null +++ b/programming/library/libmaxminddb/actions.py @@ -0,0 +1,26 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/copyleft/gpl.txt + +from pisi.actionsapi import cmaketools +from pisi.actionsapi import get +from pisi.actionsapi import pisitools +from pisi.actionsapi import shelltools + +def setup(): + shelltools.makedirs("build") + shelltools.cd("build") + cmaketools.configure("-DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_LIBDIR=lib", sourceDir="..") +def build(): + shelltools.cd("build") + cmaketools.make() + +def install(): + shelltools.cd("build") + cmaketools.rawInstall("DESTDIR=%s" % get.installDIR()) + + shelltools.cd("..") + pisitools.dodoc("AUTHORS", "LICENSE", "Changes.md", "README.md") \ No newline at end of file diff --git a/programming/library/libmaxminddb/pspec.xml b/programming/library/libmaxminddb/pspec.xml new file mode 100644 index 0000000000..353a9181be --- /dev/null +++ b/programming/library/libmaxminddb/pspec.xml @@ -0,0 +1,48 @@ + + + + + libmaxminddb + https://maxmind.github.io/libmaxminddb + + Pisi Linux Admins + admins@pisilinux.org + + Apache-2.0 + library + C library for the MaxMind DB file format + The libmaxminddb library provides a C library for reading MaxMind DB files, including the GeoIP2 databases from MaxMind. + https://github.com/maxmind/libmaxminddb/releases/download/1.6.0/libmaxminddb-1.6.0.tar.gz + + glibc-devel + geoip-devel + cmake + + + + + libmaxminddb + + /usr/bin + /usr/lib + /usr/share/doc + + + + + libmaxminddb-devel + + /usr/include + + + + + + 2021-08-10 + 1.6.0 + First release for Pisi Linux + Berk Çakar + berk2238@hotmail.com + + +