[arch-commits] Commit in (4 files)
Felix Yan
felixonmars at archlinux.org
Mon Feb 13 15:35:20 UTC 2017
Date: Monday, February 13, 2017 @ 15:35:19
Author: felixonmars
Revision: 212127
addpkg: libcorkipset 1.1.1+20150311-1
Added:
libcorkipset/
libcorkipset/repos/
libcorkipset/trunk/
libcorkipset/trunk/PKGBUILD
----------+
PKGBUILD | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
Added: libcorkipset/trunk/PKGBUILD
===================================================================
--- libcorkipset/trunk/PKGBUILD (rev 0)
+++ libcorkipset/trunk/PKGBUILD 2017-02-13 15:35:19 UTC (rev 212127)
@@ -0,0 +1,48 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=libcorkipset
+pkgver=1.1.1+20150311
+_debver=7
+pkgrel=1
+pkgdesc="A small C helper library for storing sets of IPv4 and IPv6 addresses"
+url="https://github.com/rogers0/libcorkipset"
+arch=('i686' 'x86_64')
+license=('BSD')
+depends=('libcork')
+makedepends=('cmake' 'check' 'git')
+checkdepends=('python')
+source=("git+https://github.com/rogers0/libcorkipset#tag=debian/$pkgver-$_debver")
+sha512sums=('SKIP')
+
+prepare() {
+ mkdir build
+
+ cd libcorkipset
+ for p in debian/patches/*.patch; do
+ patch -p1 -i "$p"
+ done
+
+ sed -e 's%#include <ipset%#include <libcorkipset%' \
+ -e 's%#include "ipset%#include "libcorkipset%' \
+ -i include/ipset/*.h */*/*/*.c */*/*/*.c.in */*/*.c */*.c
+ mv include/{,libcork}ipset
+}
+
+build() {
+ cd build
+ cmake ../libcorkipset -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib
+ make
+}
+
+check() {
+ cd build
+ make test
+}
+
+package() {
+ cd build
+ make DESTDIR="$pkgdir/" install
+
+ install -Dm644 "$srcdir"/$pkgname/LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
+}
Property changes on: libcorkipset/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
More information about the arch-commits
mailing list