-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathrules
executable file
·50 lines (38 loc) · 1.08 KB
/
rules
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
49
50
#!/usr/bin/make -f
# Change variables below if a new version is released
BUILD=`tar -tzf PhpStorm-*.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-*.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
# Create symlink in /usr/bin
dh_link opt/PhpStorm/bin/PhpStorm.sh usr/bin/phpstorm
# Create gconf defaults for pbfile:// urls
cp phpstorm.schemas $(CURDIR)/debian/phpstorm/usr/share/gconf/schemas
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