summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Severance2015-09-21 07:10:42 -0400
committerChris Severance2015-09-21 07:10:42 -0400
commitd3591e3481cd0d5065160e438ae6456224911276 (patch)
tree6c292411c045e857c9f2d0e03bf73008901da114
downloadaur-d3591e3481cd0d5065160e438ae6456224911276.tar.gz
Initial Import
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD36
2 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..1fd5a275207
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = php-font-lib
+ pkgdesc = FontLib :: A library to read, parse, export and make subsets of different types of font files.
+ pkgver = 0.4
+ pkgrel = 1
+ url = https://github.com/PhenX/php-font-lib
+ arch = any
+ license = LGPL
+ depends = php>=5.3
+ options = !strip
+ source = php-font-lib-0.4.tar.gz::https://github.com/PhenX/php-font-lib/archive/0.4.tar.gz
+ sha256sums = c37b5ac553b039b8406f26911595310ecb5563add3b94dbc1dadaa073554becf
+
+pkgname = php-font-lib
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c8f9429eebe
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Chris Severance aur.severach aATt spamgourmet dott com
+
+set -u
+_pkgnick='FontLib'
+_pkgname='php-font-lib'
+pkgname="${_pkgname}"
+pkgver='0.4'
+pkgrel='1'
+pkgdesc="${_pkgnick} :: A library to read, parse, export and make subsets of different types of font files."
+arch=('any')
+url='https://github.com/PhenX/php-font-lib'
+license=('LGPL')
+depends=('php>=5.3')
+options=('!strip')
+_verwatch=("${url}/releases" "${url#*github.com}/archive/\(.*\)\.tar\.gz" 'l')
+source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
+sha256sums=('c37b5ac553b039b8406f26911595310ecb5563add3b94dbc1dadaa073554becf')
+
+prepare() {
+ set -u
+ cd "${_pkgname}-${pkgver}"
+ sed -i -e 's:/\.\./maps/:/maps/:g' "src/${_pkgnick}/AdobeFontMetrics.php"
+ set +u
+}
+
+package() {
+ set -u
+ cd "${_pkgname}-${pkgver}"
+ install -Dpm644 'LICENSE' "${pkgdir}/usr/share/licenses/${pkgname}/LICENCE"
+
+ install -d "${pkgdir}/usr/share/webapps/"
+ mv "src/${_pkgnick}" "${pkgdir}/usr/share/webapps/"
+ mv 'maps' "${pkgdir}/usr/share/webapps/${_pkgnick}/"
+ set +u
+}
+set +u