blob: 193f2a9a1de0a36f73f6d3595058e2871972e6d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#!/usr/bin/make -f
# -*- makefile -*-
# This has to be exported to make some magic below work.
export DH_OPTIONS
export DH_GOPKG = 0xacab.org/leap/riseup_vpn
export DH_GOLANG_EXCLUDES = vendor
%:
dh $@ --with golang --buildsystem golang
override_dh_auto_test:
override_dh_auto_build:
# FIXME how ugly is this?
# this is the only way I found of having a quilt package made for the customized builds that gets
# in place the sources for bitmask-vpn
# XXX What var can I use instead of the hardcoded build dir?
ln -s `pwd` obj-x86_64-linux-gnu/src/0xacab.org/leap/bitmask-systray
dh_auto_build
override_dh_install:
mkdir -p $(CURDIR)/debian/riseup-vpn/usr/sbin
cp $(CURDIR)/helpers/bitmask-root $(CURDIR)/debian/riseup-vpn/usr/sbin/
mkdir -p $(CURDIR)/debian/riseup-vpn/usr/share/polkit-1/actions
cp $(CURDIR)/helpers/se.leap.bitmask.policy $(CURDIR)/debian/riseup-vpn/usr/share/polkit-1/actions
rm -fr $(CURDIR)/debian/riseup-vpn/usr/share/gocode
rm -fr $(CURDIR)/debian/riseup-vpn/usr/bin/transifex
strip $(CURDIR)/debian/riseup-vpn/usr/bin/riseup_vpn
dh_install
|