File: rules

package info (click to toggle)
php-horde-ansel 3.0.9%2Bdebian0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 4,860 kB
  • sloc: php: 15,757; xml: 1,979; makefile: 28; sh: 3
file content (38 lines) | stat: -rwxr-xr-x 1,368 bytes parent folder | download | duplicates (2)
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
32
33
34
35
36
37
38
#!/usr/bin/make -f

HORDENAME=ansel
DESTDIR=$(CURDIR)/debian/php-horde-$(HORDENAME)

%:
	dh $@ --buildsystem=phppear --with phppear

override_dh_auto_configure:
	dh_auto_configure -O--buildsystem=phppear
	# Remove references to stripped files
	php debian/strip-package-xml.php $(HORDENAME)-*/package.xml bin/AnselPublish.scpt js/cropper.js

check_dfsg:
	@if [ -e $(HORDENAME)-*/bin/AnselPublish.scpt -o -e $(HORDENAME)-*/js/cropper.js ] ; then \
	      echo " *****************************************"; \
	      echo " **                                     **"; \
	      echo " ** source contains                     **", \
	      echo " ** compiled AppleScript or cropper.js! **"; \
	      echo " **                                     **"; \
	      echo " *****************************************"; \
	      echo "Those files should be stripped:"; \
	      ls $(HORDENAME)-*/bin/AnselPublish.scpt $(HORDENAME)-*/js/cropper.js; \
	      echo ""; \
	      exit 1; \
	fi

override_dh_prep: check_dfsg
	dh_prep -O--buildsystem=phppear

override_dh_link:
	dh_link
	dh_installdirs etc/horde
	# config of "ansel" app:
	mv $(DESTDIR)/usr/share/horde/$(HORDENAME)/config $(DESTDIR)/etc/horde/$(HORDENAME)
	dh_link etc/horde/$(HORDENAME) usr/share/horde/$(HORDENAME)/config
	# cropper.js
	dh_link usr/share/javascript/cropper/cropper.js usr/share/horde/ansel/js/cropper.js