File: rules

package info (click to toggle)
golly 3.2-2
  • links: PTS
  • area: main
  • in suites: buster
  • size: 19,516 kB
  • sloc: cpp: 69,819; ansic: 25,894; python: 7,921; sh: 4,267; objc: 3,721; java: 2,781; xml: 1,362; makefile: 530; perl: 69
file content (30 lines) | stat: -rwxr-xr-x 1,290 bytes parent folder | download
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
#!/usr/bin/make -f
# -*- makefile -*-

TRIPLET=$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
PERL_SHLIB=$(shell ls -l /usr/lib/$(TRIPLET)/libperl.so | sed 's/^.* -> \(.*\)$$/\1/')
export DH_OPTIONS

%:
	dh $@ --with python3,lua --builddirectory=build \
	      --sourcedirectory=gui-wx/configure

override_dh_auto_configure:
	dh_auto_configure -O--builddirectory=build \
	   -O--sourcedirectory=gui-wx/configure -- \
	   --with-perl-shlib=$(PERL_SHLIB)

override_dh_auto_install:
	dh_auto_install -O--builddirectory=build \
	   -O--sourcedirectory=gui-wx/configure
        # we have license information in /usr/share/doc/golly/copyright already
        # rm -f $(CURDIR)/debian/golly/usr/share/doc/golly/License.html
        # golly should be in /usr/games, we should have icon and menu
	mkdir -p $(CURDIR)/debian/golly/usr/games \
	         $(CURDIR)/debian/golly/usr/share/pixmaps \
		 $(CURDIR)/debian/golly/usr/share/applications
	mv $(CURDIR)/debian/golly/usr/bin/golly $(CURDIR)/debian/golly/usr/games/golly
	install -m 444 gui-wx/icons/appicon.xpm  $(CURDIR)/debian/golly/usr/share/pixmaps/golly.xpm
	install -m 444 debian/golly.desktop $(CURDIR)/debian/golly/usr/share/applications
        # Fix installation
	chmod +x $(CURDIR)/debian/golly/usr/share/golly/Help/Lexicon/modify.pl