| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
# Warning: if you build from source, you must change the font name. |
| 4 |
# See README.source for more information. |
| 5 |
BUILD_FROM_SOURCE := 0 |
| 6 |
|
| 7 |
DEST := debian/fonts-sn-pro/usr/share/fonts/opentype/sn-pro/ |
| 8 |
|
| 9 |
%: |
| 10 |
dh $@ |
| 11 |
|
| 12 |
|
| 13 |
override_dh_auto_build: |
| 14 |
ifeq (BUILD_FROM_SOURCE,1) |
| 15 |
# Cannot use upstream build script, need newer gftools version |
| 16 |
# ./sources/build.sh |
| 17 |
fontmake -g './sources/SN Pro.glyphs' -i -o otf --output-dir fonts/otf |
| 18 |
endif |
| 19 |
|
| 20 |
|
| 21 |
override_dh_auto_install: |
| 22 |
mkdir -p $(DEST) |
| 23 |
ifeq (BUILD_FROM_SOURCE,1) |
| 24 |
install -m0644 fonts/otf/*.otf $(DEST) |
| 25 |
else |
| 26 |
install -m0644 exports/SNPro/*.otf $(DEST) |
| 27 |
endif |