-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
19 lines (18 loc) · 1.1 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Size := $(shell du -k [email protected] | tail -n 1 | awk '{print $$1}')
Version := $(shell awk '/"version"/{print $$2}' [email protected]/metadata.json)
deb:
glib-compile-schemas [email protected]/schemas/
install -d /tmp/gnome-shell-extension-lazy-worker/usr/share/gnome-shell/extensions/
cp -r [email protected] /tmp/gnome-shell-extension-lazy-worker/usr/share/gnome-shell/extensions/
install -D -t /tmp/gnome-shell-extension-lazy-worker/DEBIAN/ control
sed -i 's/Installed-Size: 0/Installed-Size: $(Size)/g' /tmp/gnome-shell-extension-lazy-worker/DEBIAN/control
sed -i 's/Version:/Version: $(Version)/g' /tmp/gnome-shell-extension-lazy-worker/DEBIAN/control
dpkg-deb --build /tmp/gnome-shell-extension-lazy-worker/ gnome-shell-extension-lazy-worker.deb
rm -rf /tmp/gnome-shell-extension-lazy-worker/
install:
glib-compile-schemas [email protected]/schemas/
cp -r [email protected] ~/.local/share/gnome-shell/extensions/
uninstall:
rm -r ~/.local/share/gnome-shell/extensions/[email protected]
clean:
rm -rf gnome-shell-extension-lazy-worker.deb /tmp/gnome-shell-extension-lazy-worker