summaryrefslogtreecommitdiff
path: root/packages/l/usbids/Makefile
blob: 4cffcdc98cf25d6609e806241fd55419e9f32dc1 (plain)
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
#
# Project Home:
# ============
# http://www.linux-usb.org
#
# Downloads:
# =========
# http://www.linux-usb.org/usb.ids
#

url         = http://www.linux-usb.org

version     = $(shell echo `date +%Y%m%d`)
pkgname     = usbids
suffix      = tar.xz

tarball     = $(addsuffix .$(suffix), $(addprefix $(pkgname)-, $(version)))
sha1s       = $(addsuffix .sha1sum, $(tarball))


all: $(tarball) $(sha1s)

.PHONY: downloads_clean

$(tarball):
	@echo -e "\n======= Downloading source tarballs =======\n"
	@wget -N $(url)/usb.ids
	@tar cJvf $(tarball) usb.ids
	@rm -f usb.ids

$(sha1s): $(tarball)
	@echo -e "\n======= Calculation the '$(tarball)' sha1sum =======\n"
	@sha1sum --binary $(tarball) > $(tarball).sha1sum ; \

downloads_clean:
	@rm -rf $(pkgname)-*$(suffix) $(pkgname)-*$(suffix).sha1sum