forked from git-for-windows/MINGW-packages
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adns: New package. Dependency for GnuPG
- Loading branch information
Showing
3 changed files
with
77 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} | ||
|