-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathrules
More file actions
executable file
·48 lines (37 loc) · 1.09 KB
/
rules
File metadata and controls
executable file
·48 lines (37 loc) · 1.09 KB
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
39
40
41
42
43
44
45
46
47
48
#!/usr/bin/make -f
DEBVERS := $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p')
VERSION := $(shell echo '$(DEBVERS)' | sed -e 's/^[[:digit:]]*://' -e 's/[~-].*//')
BUILD=$(shell tar -tzf PhpStorm-$(VERSION).tar.gz | head -n 1 | cut -d/ -f1)
build: build-stamp
build-stamp:
touch $@
clean:
dh_testdir
dh_testroot
rm -f build-stamp
dh_clean
install: build
dh_testdir
dh_testroot
dh_prep
dh_installdirs
# Untar and move upstream version
tar --directory $(CURDIR)/debian/phpstorm/opt -xzf PhpStorm-$(VERSION).tar.gz
mv $(CURDIR)/debian/phpstorm/opt/$(BUILD) $(CURDIR)/debian/phpstorm/opt/PhpStorm
# Create desktop item for menu
cp phpstorm.desktop $(CURDIR)/debian/phpstorm/usr/share/applications
# Copy start script to /usr/bin
cp phpstorm.php $(CURDIR)/debian/phpstorm/usr/bin/phpstorm
binary-indep: build install
dh_testdir -i
dh_testroot -i
dh_installdocs -i
dh_install -i
dh_fixperms -i
dh_installdeb -i
dh_gencontrol -i
dh_md5sums -i
dh_builddeb -i
binary-arch: build install
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install