summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorShengyu Zhang2017-05-07 13:37:43 +0800
committerShengyu Zhang2017-05-07 13:37:43 +0800
commitf686abc98147bdd65ef69769cb5748572b0b35a1 (patch)
tree978b1621b89dba1b858ba251f53725fe1ed6c45a
downloadaur-f686abc98147bdd65ef69769cb5748572b0b35a1.tar.gz
addpkg: fontweak
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD44
2 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..ba4192e3139
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+# Generated by mksrcinfo v8
+# Sun May 7 05:37:02 UTC 2017
+pkgbase = fontweak
+ pkgdesc = GUI front-end of fontconfig
+ pkgver = 1.3.1
+ pkgrel = 1
+ url = https://github.com/guoyunhe/fontweak
+ arch = any
+ license = GPL3
+ makedepends = java-environment
+ makedepends = apache-ant
+ depends = sh
+ depends = java-runtime
+ source = https://github.com/guoyunhe/fontweak/archive/v1.3.1/fontweak-1.3.1.tar.gz
+ sha256sums = 7ef6f68cbccfafc868017da8fdbb517963621db6c3133bcfdb107d372c42aef0
+
+pkgname = fontweak
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9a463c0d2d7
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer: Shengyu Zhang <lastavengers at archlinuxcn dot org>
+# Contributor: Guo Yunhe <guoyunhebrave@gmail.com>
+pkgname=fontweak
+pkgver=1.3.1
+pkgrel=1
+pkgdesc="GUI front-end of fontconfig"
+arch=(any)
+url="https://github.com/guoyunhe/fontweak"
+license=('GPL3')
+groups=()
+depends=('sh' 'java-runtime')
+makedepends=('java-environment' 'apache-ant')
+optdepends=()
+provides=()
+conflicts=()
+replaces=()
+backup=()
+options=()
+install=()
+changelog=
+source=("https://github.com/guoyunhe/${pkgname}/archive/v1.3.1/${pkgname}-${pkgver}.tar.gz")
+noextract=()
+sha256sums=('7ef6f68cbccfafc868017da8fdbb517963621db6c3133bcfdb107d372c42aef0')
+
+build() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ ant jar
+}
+
+package() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+
+ mkdir -p ${pkgdir}/usr/bin
+ cat > ${pkgdir}/usr/bin/${pkgname} << EOF
+#!/bin/sh
+exec java -jar "/usr/share/${pkgname}/${pkgname}.jar"
+EOF
+ chmod 0755 ${pkgdir}/usr/bin/${pkgname}
+
+ install -D -m664 dist/${pkgname}.jar ${pkgdir}/usr/share/${pkgname}/${pkgname}.jar
+ install -D -m664 icon.svg ${pkgdir}/usr/share/pixmaps/${pkgname}.svg
+ install -D -m664 ${pkgname}.desktop ${pkgdir}/usr/share/applications/${pkgname}.desktop
+}
+