Skip to content

Commit

Permalink
adns: New package. Dependency for GnuPG
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexpux committed Aug 30, 2016
1 parent 0a17dd9 commit 6b9c95a
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 0 deletions.
51 changes: 51 additions & 0 deletions mingw-w64-adns/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Maintainer: Alexey Pavlov <[email protected]>

_realname=adns
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
_tag=adns-1.4-g10-7
pkgver=${_tag//adns-/}
pkgver=${pkgver//-/.}
pkgrel=1
pkgdesc="adns is an asyncronous replacement resolver library (mingw-w64)"
arch=('any')
url="http://www.chiark.greenend.org.uk/~ian/adns/"
license=('GPL LGPL')
makedepends=("${MINGW_PACKAGE_PREFIX}-gcc"
"${MINGW_PACKAGE_PREFIX}-pkg-config"
"git")
depends=("${MINGW_PACKAGE_PREFIX}-gcc-libs")
source=(git://git.gnupg.org/adns.git#commit=c363fb22d3ce24552ab97572e348d2b024a9f16a
mingw-no-regress.patch
mingw-mkdir.patch)
sha256sums=('SKIP'
'56309cdcd39899124aa62f1231a3444886d4b460d520e390308c084749208249'
'cd0384622dee28f9f034df0d2e67fc7e0e2b2aab636405b862df86baab1279e3')

prepare() {
cd ${_realname}
patch -p1 -i ${srcdir}/mingw-no-regress.patch
patch -p1 -i ${srcdir}/mingw-mkdir.patch
./autogen.sh
}
build() {
[[ -d build-${MINGW_CHOST} ]] && rm -rf build-${MINGW_CHOST}
mkdir -p build-${MINGW_CHOST}
cd build-${MINGW_CHOST}

../${_realname}/configure \
--prefix=${MINGW_PREFIX} \
--build=${MINGW_CHOST} \
--host=${MINGW_CHOST} \
--enable-static \
--enable-shared

make
}

package() {
cd "build-${MINGW_CHOST}"
make DESTDIR="${pkgdir}" install

install -Dm0755 ${srcdir}/${_realname}/LICENCE.WAIVERS "${pkgdir}"${MINGW_PREFIX}/share/licenses/${_realname}/LICENCE.WAIVERS
}
10 changes: 10 additions & 0 deletions mingw-w64-adns/mingw-mkdir.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
--- adns/src/Makefile.am.orig 2016-08-30 09:00:46.094215700 +0300
+++ adns/src/Makefile.am 2016-08-30 09:01:53.122049500 +0300
@@ -54,6 +54,7 @@
w32src = w32support.c w32extra.c w32inet.c

install-def-file:
+ $(MKDIR_P) "$(DESTDIR)$(libdir)"
$(INSTALL) $(srcdir)/libadns.def $(DESTDIR)$(libdir)/libadns.def

uninstall-def-file:
16 changes: 16 additions & 0 deletions mingw-w64-adns/mingw-no-regress.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
--- adns/Makefile.am.orig 2016-08-30 08:55:44.130944400 +0300
+++ adns/Makefile.am 2016-08-30 08:55:55.617601400 +0300
@@ -27,13 +27,7 @@
EXTRA_DIST = autogen.sh changelog.Debian \
README.html GPL-vs-LGPL LICENCE.WAIVERS

-
-if CROSS_COMPILING
regress =
-else
-regress = regress
-endif
-

SUBDIRS = m4 src client ${regress}

0 comments on commit 6b9c95a

Please sign in to comment.