init: pristine aerc 0.20.0 source
This commit is contained in:
+37
@@ -0,0 +1,37 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
include /usr/share/dpkg/pkg-info.mk
|
||||
|
||||
# Extra files required for build
|
||||
export DH_GOLANG_INSTALL_EXTRA := GNUmakefile config contrib/aerc.desktop contrib/carddav-query doc filters stylesets templates
|
||||
|
||||
# Installation paths
|
||||
export DESTDIR=$(CURDIR)/debian/aerc
|
||||
export PREFIX=/usr
|
||||
|
||||
# Go options
|
||||
export GO111MODULE=off
|
||||
export GOPROXY=off
|
||||
export GOCACHE=$(CURDIR)/_build/go-build
|
||||
export GOPATH=$(CURDIR)/_build
|
||||
export GOFLAGS=-tags=notmuch -buildmode=pie
|
||||
|
||||
# Hardening
|
||||
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
|
||||
DPKG_EXPORT_BUILDFLAGS = 1
|
||||
include /usr/share/dpkg/buildflags.mk
|
||||
|
||||
%:
|
||||
dh $@ --builddirectory=_build --buildsystem=golang --with=golang
|
||||
|
||||
override_dh_auto_build:
|
||||
$(MAKE) -C _build/src/git.sr.ht/~rjarry/aerc VERSION=$(DEB_VERSION_UPSTREAM)
|
||||
|
||||
override_dh_auto_test:
|
||||
mkdir -p debian/test-gnupg
|
||||
chmod og-rx debian/test-gnupg
|
||||
GNUPGHOME=${CURDIR}/debian/test-gnupg dh_auto_test
|
||||
rm -rf debian/test-gnupg
|
||||
|
||||
override_dh_auto_install:
|
||||
$(MAKE) -C_build/src/git.sr.ht/~rjarry/aerc install VERSION=$(DEB_VERSION_UPSTREAM)
|
||||
Reference in New Issue
Block a user