summaryrefslogtreecommitdiff
path: root/packages/l/pciids/Makefile
blob: 73e47efe9798726fb7ac87b9a45823eb1b5791d7 (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:
# ============
# https://pci-ids.ucw.cz/v2.2
#
# Downloads:
# =========
# https://pci-ids.ucw.cz/pci.ids
#

url         = https://pci-ids.ucw.cz

version     = $(shell echo `date +%Y%m%d`)
pkgname     = pciids
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)/pci.ids
	@tar cJvf $(tarball) pci.ids
	@rm -f pci.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