File: rules

package info (click to toggle)
fretsonfire-songs-sectoid 1.dfsg-3
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 29,712 kB
  • ctags: 1
  • sloc: makefile: 15
file content (22 lines) | stat: -rwxr-xr-x 996 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
#!/usr/bin/make -f

%:
	dh $@ --parallel

override_dh_install:
	dh_install
	# Remove extra licence files:
	find $(CURDIR)/debian/fretsonfire-songs-sectoid -name License.txt -exec rm {} \;

ORIG_VERSION=$(shell head -n1 debian/changelog  | sed 's/[a-zA-Z0-9-]* (\(.*\)-\([^-]\)*) .*/\1/')

../Sectoid_Frets_on_Fire_Song_Pack.zip:
	wget -O $@ http://www.nivel21.net/personal/sectoid/fretsonfire/Sectoid_Frets_on_Fire_Song_Pack.zip

get-orig-source: ../Sectoid_Frets_on_Fire_Song_Pack.zip
	rm -rf fretsonfire-songs-sectoid-$(ORIG_VERSION) "Escape from chaosland" "Feelings" "Metal madness" "Ryu's theme" "War of freedom"
	for i in $^; do unzip -o $$i; done
	mkdir -p fretsonfire-songs-sectoid-$(ORIG_VERSION)
	mv -f "Escape from chaosland" "Feelings" "Metal madness" "War of freedom" fretsonfire-songs-sectoid-$(ORIG_VERSION)
	tar zcvf ../fretsonfire-songs-sectoid_$(ORIG_VERSION).orig.tar.gz fretsonfire-songs-sectoid-$(ORIG_VERSION)
	rm -rf fretsonfire-songs-sectoid-$(ORIG_VERSION) "Ryu's theme"