Skip to content

Instantly share code, notes, and snippets.

@nonakap
Created March 14, 2015 14:23
Show Gist options
  • Select an option

  • Save nonakap/f14d52f2f31b9025fd2a to your computer and use it in GitHub Desktop.

Select an option

Save nonakap/f14d52f2f31b9025fd2a to your computer and use it in GitHub Desktop.
pkgsrc for Ohruri Japanese TrueType fonts
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# fonts/ohruri-ttf/DESCR
# fonts/ohruri-ttf/Makefile
# fonts/ohruri-ttf/PLIST
# fonts/ohruri-ttf/distinfo
#
echo x - fonts/ohruri-ttf/DESCR
sed 's/^X//' >fonts/ohruri-ttf/DESCR << 'END-of-fonts/ohruri-ttf/DESCR'
XOhruri Japanese TrueType fonts.
XIt is based on M+ Font, Source Han Sans and Open Sans Font (alphanumeric).
END-of-fonts/ohruri-ttf/DESCR
echo x - fonts/ohruri-ttf/Makefile
sed 's/^X//' >fonts/ohruri-ttf/Makefile << 'END-of-fonts/ohruri-ttf/Makefile'
X# $NetBSD$
X#
X
XDISTNAME= Ohruri-${OHRURI_VERSION}
XPKGNAME= ohruri-ttf-${OHRURI_VERSION}
XCATEGORIES= fonts japanese
XMASTER_SITES= ${MASTER_SITE_SOURCEFORGE_JP:=koruri/62879/}
XEXTRACT_SUFX= .7z
X
XMAINTAINER= [email protected]
XHOMEPAGE= http://koruri.lindwurm.biz/
XCOMMENT= Ohruri Japanese TrueType fonts
XLICENSE= apache-2.0
X
XOHRURI_VERSION= 20150226
X
XUSE_X11BASE= YES
XNO_CONFIGURE= YES
XNO_BUILD= YES
X
XFONTDIR= ${PREFIX}/share/fonts/X11/TTF
XFONTS_DIRS.ttf= ${FONTDIR}
XDOCSDIR= ${PREFIX}/share/doc/${PKGBASE}
X
XINSTALLATION_DIRS= share/fonts/X11/TTF \
X share/doc/${PKGBASE}
X
XINSTALL_FONTS= Ohruri-Bold.ttf \
X Ohruri-Extrabold.ttf \
X Ohruri-Light.ttf \
X Ohruri-Regular.ttf \
X Ohruri-Semibold.ttf
XINSTALL_DOCS= LICENSE \
X LICENSE_E.mplus \
X LICENSE_J.mplus \
X LICENSE_opensans \
X README.md \
X README_E.mplus \
X README_J.mplus
X
X
XUSE_LANGUAGES= # none
X
Xdo-install:
X.for fontfile in ${INSTALL_FONTS}
X ${INSTALL_DATA} ${WRKSRC}/${fontfile} ${DESTDIR}${FONTDIR}
X.endfor
X.for docfile in ${INSTALL_DOCS}
X ${INSTALL_DATA} ${WRKSRC}/${docfile} ${DESTDIR}${DOCSDIR}
X.endfor
X
X.include "../../mk/bsd.pkg.mk"
END-of-fonts/ohruri-ttf/Makefile
echo x - fonts/ohruri-ttf/PLIST
sed 's/^X//' >fonts/ohruri-ttf/PLIST << 'END-of-fonts/ohruri-ttf/PLIST'
X@comment $NetBSD$
Xshare/fonts/X11/TTF/Ohruri-Bold.ttf
Xshare/fonts/X11/TTF/Ohruri-Extrabold.ttf
Xshare/fonts/X11/TTF/Ohruri-Light.ttf
Xshare/fonts/X11/TTF/Ohruri-Regular.ttf
Xshare/fonts/X11/TTF/Ohruri-Semibold.ttf
Xshare/doc/${PKGBASE}/LICENSE
Xshare/doc/${PKGBASE}/LICENSE_E.mplus
Xshare/doc/${PKGBASE}/LICENSE_J.mplus
Xshare/doc/${PKGBASE}/LICENSE_opensans
Xshare/doc/${PKGBASE}/README.md
Xshare/doc/${PKGBASE}/README_E.mplus
Xshare/doc/${PKGBASE}/README_J.mplus
END-of-fonts/ohruri-ttf/PLIST
echo x - fonts/ohruri-ttf/distinfo
sed 's/^X//' >fonts/ohruri-ttf/distinfo << 'END-of-fonts/ohruri-ttf/distinfo'
X$NetBSD$
X
XSHA1 (Ohruri-20150226.7z) = 65ff90978a838196b09dfba7068114a210d23dcd
XRMD160 (Ohruri-20150226.7z) = 6f5a1c3693d5da15cf9da510edb2bfbdac095b85
XSize (Ohruri-20150226.7z) = 12561953 bytes
END-of-fonts/ohruri-ttf/distinfo
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment