Name libgpg-error-l10n
Description library of error values and messages in GnuPG (localization files)
Version 1.47-3build2.1
Package Base libgpg-error
Homepage https://www.gnupg.org/related_software/libgpg-error/
Maintainers ['Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>']
Contributors [' Daniel Kahn Gillmor <dkg@fifthhorseman.net>', 'Christoph Biedl <debian.axhn@manchmal.in-ulm.de>,']
Distro-repo https://git.launchpad.net/ubuntu/+source/libgpg-error/tree/?h=ubuntu/noble
Sources ['https://git.launchpad.net/ubuntu/+source/libgpg-error-l10n/plain/debian/watch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/libgpg-error/plain/debian/patches/../?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/libgpg-error/plain/debian/patches/0001-Remove-upstream-git-fanciness.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/libgpg-error/plain/debian/patches/series?h=ubuntu/noble']
Dependencies []
Optional-Dependencies []
Build-Dependencies ['automake', 'debhelper-compat', 'gettext', 'texinfo']
Provides []
Builddate
Architecture amd64
Distro-Version noble
Licenses []
Hash a9c8cf9128208c5829b589e76d1782a9a90fbff90295fcbf303e0e8db62223ff
#!/usr/bin/make -f
include /usr/share/dpkg/architecture.mk
export AUTOPOINT = true
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export CFLAGS_FOR_BUILD = $(shell dpkg-architecture -f -a$(DEB_BUILD_ARCH) -c dpkg-buildflags --get CFLAGS)
export LDFLAGS_FOR_BUILD = $(shell dpkg-architecture -f -a$(DEB_BUILD_ARCH) -c dpkg-buildflags --get LDFLAGS)

%:
	dh $@

override_dh_auto_configure:
	touch po/libgpg-error.pot
	dh_auto_configure --builddirectory=build -- \
	    --enable-static \
	    --disable-rpath \
	    --infodir=\$${prefix}/share/info \
	    --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH)

override_dh_auto_build-arch:
	dh_auto_build --builddirectory=build
ifeq ($(DEB_HOST_MULTIARCH),$(DEB_BUILD_MULTIARCH))
	tail -vn+0 build/src/lock-obj-pub.native.h
endif

override_dh_auto_install-arch:
	dh_auto_install --builddirectory=build

override_dh_installchangelogs:
	dh_installchangelogs -A NEWS

override_dh_installdocs:
	dh_installdocs -A README

### "arch-independent" Windows builds: ###

WIN_FLAGS=LDFLAGS="-Xlinker --no-insert-timestamp" CFLAGS="-g -Os -fdebug-prefix-map=$(shell pwd)=." CPPFLAGS=

override_dh_auto_build-indep:
	for cpu in i686 x86_64; do \
	 mkdir -p build-$$cpu-w64-mingw32 && \
	 cd build-$$cpu-w64-mingw32 && $(WIN_FLAGS) ../configure \
	    --prefix=/usr/$$cpu-w64-mingw32 \
	    --enable-static \
	    --host $$cpu-w64-mingw32 && \
	  $(WIN_FLAGS) $(MAKE) \
	  || exit 1 ; \
	  cd .. ; \
	done

override_dh_auto_install-indep:
	for cpu in i686 x86_64; do \
	  cd build-$$cpu-w64-mingw32 && \
	  $(MAKE) install DESTDIR=$(shell pwd)/debian/tmp \
	  || exit 1 ; \
	  cd .. ; \
	done