summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilk Brewster2020-02-24 21:54:39 +0000
committerMilk Brewster2020-02-24 21:54:39 +0000
commit692b63fe43df3bc76aae29bb456963ac9dbb7e02 (patch)
tree97749d1ef435a2bb4d9cafbaf61e351d737eaf94
downloadaur-692b63fe43df3bc76aae29bb456963ac9dbb7e02.tar.gz
initial commit
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD42
2 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..2aeecf0026b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = nanosvg-git
+ pkgdesc = Simple stupid SVG parser.
+ pkgver = r120.25241c5
+ pkgrel = 1
+ url = https://github.com/memononen/nanosvg
+ arch = x86_64
+ license = ZLIB
+ makedepends = git
+ makedepends = premake
+ makedepends = patch
+ provides = nanosvg
+ conflicts = nanosvg
+ source = nanosvg::git+https://github.com/memononen/nanosvg
+ md5sums = SKIP
+
+pkgname = nanosvg-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ab10fd3f35a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: Oliver Weissbarth <mail@oweissbarth.de>
+pkgname=nanosvg-git
+pkgver=r120.25241c5
+pkgrel=1
+pkgdesc="Simple stupid SVG parser."
+arch=("x86_64")
+url="https://github.com/memononen/nanosvg"
+license=('ZLIB')
+groups=()
+depends=()
+makedepends=('git' 'premake' 'patch')
+provides=("${pkgname%-git}")
+conflicts=("${pkgname%-git}")
+replaces=()
+backup=()
+options=()
+source=('nanosvg::git+https://github.com/memononen/nanosvg')
+noextract=()
+md5sums=('SKIP')
+
+pkgver() {
+ cd "${pkgname%-git}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd "$srcdir/${pkgname%-git}"
+}
+
+build() {
+ cd "$srcdir/${pkgname%-git}"
+ premake4 gmake
+ cd build
+ make config=release
+}
+
+package() {
+ cd "$srcdir/${pkgname%-git}"
+ install -D src/nanosvg.h ${pkgdir}/usr/include/nanosvg.h
+ install -D src/nanosvgrast.h ${pkgdir}/usr/include/nanosvgrast.h
+ install -D LICENSE.txt ${pkgdir}/usr/share/licenses/${pkgname%-git}/LICENSE.txt.
+}