-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (20 loc) · 1.23 KB
/
Copy pathMakefile
File metadata and controls
26 lines (20 loc) · 1.23 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
VERSION=$(shell dpkg-parsechangelog | sed -nr '/^Version:/s/Version: (.*)-(.*)/\1/p')
RELEASE=$(shell dpkg-parsechangelog | sed -nr '/^Version:/s/Version: (.*)-(.*)/\2/p')
DOWNLOAD_ID=1576 # This id number comes off the link on the displaylink website
TARGETS = displaylink_$(VERSION)-$(RELEASE)_amd64.deb
all: $(TARGETS)
clean:
rm -f $(TARGETS) v$(VERSION).tar.gz
DisplayLink\ USB\ Graphics\ Software\ for\ Ubuntu\ $(VERSION).zip:
wget --post-data="fileId=$(DOWNLOAD_ID)&accept_submit=Accept" -O DisplayLink\ USB\ Graphics\ Software\ for\ Ubuntu\ $(VERSION).zip https://www.displaylink.com/downloads/file?id=$(DOWNLOAD_ID)
displaylink_$(VERSION).orig.tar.gz: DisplayLink\ USB\ Graphics\ Software\ for\ Ubuntu\ $(VERSION).zip
unzip DisplayLink\ USB\ Graphics\ Software\ for\ Ubuntu\ $(VERSION).zip
chmod +x displaylink-driver-$(VERSION).run
./displaylink-driver-$(VERSION).run --keep --noexec
mv displaylink-driver-$(VERSION) displaylink-$(VERSION)
tar -czf displaylink_$(VERSION).orig.tar.gz displaylink-$(VERSION)
displaylink_$(VERSION)-$(RELEASE)_amd64.deb: displaylink_$(VERSION).orig.tar.gz
test -d displaylink-$(VERSION) || tar -xzf displaylink_$(VERSION).orig.tar.gz
cd displaylink-$(VERSION) && \
cp -r ../debian . && \
debuild -us -uc