summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbuild12
-rw-r--r--fonts-mplus-1m.pkg/control7
-rw-r--r--fonts-mplus-1p.pkg/control7
-rw-r--r--fonts-mplus-common.pkg/control6
-rw-r--r--fonts-mplus-common.pkg/docs (renamed from fonts-mplus.pkg/docs)0
-rw-r--r--substvars (renamed from fonts-mplus.pkg/control)4
6 files changed, 30 insertions, 6 deletions
diff --git a/build b/build
index bb20e3a..4966e07 100755
--- a/build
+++ b/build
@@ -1,5 +1,7 @@
#!/usr/bin/make -f
+variations = 1m 1p
+
include ../source.mk
nop:
@@ -9,6 +11,10 @@ build:
@:
install: build
- install -d -m 0755 fonts-mplus.data/usr/share/fonts/truetype/mplus
- install -m 0644 src/*.ttf \
- fonts-mplus.data/usr/share/fonts/truetype/mplus
+ set -e; \
+ for v in $(variations); do \
+ install -d -m 0755 \
+ fonts-mplus-$${v}.data/usr/share/fonts/truetype/mplus; \
+ install -m 0644 src/mplus-$${v}-*.ttf \
+ fonts-mplus-$${v}.data/usr/share/fonts/truetype/mplus; \
+ done
diff --git a/fonts-mplus-1m.pkg/control b/fonts-mplus-1m.pkg/control
new file mode 100644
index 0000000..a70cd36
--- /dev/null
+++ b/fonts-mplus-1m.pkg/control
@@ -0,0 +1,7 @@
+Architecture: all
+Platform: all
+Depends: fonts-mplus-common (= ${Binary-Version})
+Description: M+ M Type-1 sans-serif fonts with different weights
+ ${Common-Description}
+ .
+ This package contains M+ M Type-1 fonts.
diff --git a/fonts-mplus-1p.pkg/control b/fonts-mplus-1p.pkg/control
new file mode 100644
index 0000000..9034589
--- /dev/null
+++ b/fonts-mplus-1p.pkg/control
@@ -0,0 +1,7 @@
+Architecture: all
+Platform: all
+Depends: fonts-mplus-common (= ${Binary-Version})
+Description: M+ P Type-1 sans-serif fonts with different weights
+ ${Common-Description}
+ .
+ This package contains M+ P Type-1 fonts.
diff --git a/fonts-mplus-common.pkg/control b/fonts-mplus-common.pkg/control
new file mode 100644
index 0000000..7bfabaa
--- /dev/null
+++ b/fonts-mplus-common.pkg/control
@@ -0,0 +1,6 @@
+Architecture: all
+Platform: all
+Description: M+ sans-serif fonts with different weights - common files
+ ${Common-Description}
+ .
+ This package contains source package documentation for the M+ fonts.
diff --git a/fonts-mplus.pkg/docs b/fonts-mplus-common.pkg/docs
index f29171f..f29171f 100644
--- a/fonts-mplus.pkg/docs
+++ b/fonts-mplus-common.pkg/docs
diff --git a/fonts-mplus.pkg/control b/substvars
index 0b2bb3e..7f85b79 100644
--- a/fonts-mplus.pkg/control
+++ b/substvars
@@ -1,6 +1,4 @@
-Architecture: all
-Platform: all
-Description: M+ sans-serif fonts with different weights
+Common-Description:
The M+ OUTLINE FONTS are distributed with proportional Latin (4 variations),
fixed-halfwidth Latin (3 variations) and fixed-fullwidth Japanese (2 Kana
variations) character set. 7 weights from Thin to Black are included, but