summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCebtenzzre2019-04-02 16:57:30 -0400
committerCebtenzzre2019-04-02 18:20:51 -0400
commit5e1d510d010cfa66f0caebb427570d53005a5bcc (patch)
treea8aa3c0763e1e1667a0051393e5867eafced9416
downloadaur-5e1d510d010cfa66f0caebb427570d53005a5bcc.tar.gz
Initial commit
-rw-r--r--.SRCINFO19
-rw-r--r--.gitignore1
-rw-r--r--PKGBUILD60
3 files changed, 80 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..421f1516cf4
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = blend2d-git
+ pkgdesc = A high-performance 2D vector graphics engine written in C++
+ pkgver = r3.e15b9ca
+ pkgrel = 1
+ url = https://blend2d.com
+ arch = i686
+ arch = x86_64
+ license = custom:zlib
+ makedepends = clang
+ depends = gcc-libs
+ provides = blend2d
+ conflicts = blend2d
+ source = blend2d::git+https://github.com/blend2d/blend2d
+ source = asmjit::git+https://github.com/asmjit/asmjit#branch=next-wip
+ sha1sums = SKIP
+ sha1sums = SKIP
+
+pkgname = blend2d-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..72e8ffc0db8
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+*
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..cadb9c65e90
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,60 @@
+# Maintainer: Cebtenzzre <cebtenzzre (at) gmail (dot) com>
+
+_pkgname=blend2d
+pkgname=${_pkgname}-git
+pkgver=r3.e15b9ca
+pkgrel=1
+pkgdesc='A high-performance 2D vector graphics engine written in C++'
+url='https://blend2d.com'
+arch=('i686' 'x86_64')
+license=('custom:zlib')
+depends=('gcc-libs')
+makedepends=('clang')
+provides=("$_pkgname")
+conflicts=("$_pkgname")
+source=("${_pkgname}::git+https://github.com/blend2d/blend2d"
+ "asmjit::git+https://github.com/asmjit/asmjit#branch=next-wip")
+sha1sums=('SKIP' 'SKIP')
+
+pkgver() {
+ cd "$_pkgname"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "$_pkgname"
+
+ [[ -d build ]] && rm -rf build
+ mkdir build && cd build
+
+ # "It's strongly advised to use Clang to compile Blend2D on all platforms to achieve maximum performance."
+ # Moreover, unit testing currently fails with GCC and march=native.
+ export CC='clang'
+ export CXX='clang++'
+
+ # Build a shared library with tests
+ cmake .. \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DASMJIT_DIR="$srcdir"/asmjit \
+ -DBLEND2D_BUILD_EMBED=FALSE \
+ -DBLEND2D_BUILD_STATIC=FALSE \
+ -DBLEND2D_BUILD_TEST=TRUE
+
+ make
+}
+
+check() {
+ cd "$_pkgname"/build
+ ./bl_test_unit
+}
+
+package() {
+ cd "$_pkgname"/build
+ make DESTDIR="$pkgdir" install
+
+ # Do not include the unit test program
+ rm -rf "$pkgdir"/usr/bin
+
+ install -Dm644 -t "$pkgdir"/usr/share/licenses/"$pkgname" ../LICENSE.md
+}