summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorxentec <artificial.i7@gmail.com>2015-06-08 20:39:12 +0200
committerxentec <artificial.i7@gmail.com>2015-06-08 20:40:56 +0200
commit5ecbbda9a0b5a682607ba91abc63d096eeec3946 (patch)
treec8b79d471524d0efb43548e824b319150085630f
Hello AUR4
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD47
2 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 0000000..060ec0e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = cppformat
+ pkgdesc = Small, safe and fast formatting library for C++
+ pkgver = 1.1.0
+ pkgrel = 1
+ url = http://cppformat.github.io
+ arch = i686
+ arch = x86_64
+ license = BSD
+ makedepends = cmake
+ depends = gcc-libs
+ conflicts = cppformat-git
+ source = https://github.com/cppformat/cppformat/archive/1.1.0.tar.gz
+ sha256sums = d859f7e520629351294e194f0d1fb889b1edda9a44c139b126562107c1783142
+
+pkgname = cppformat
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 0000000..1246437
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,47 @@
+# Maintainer: Xentec <artificial.i7 at gmail dot com>
+
+pkgname=cppformat
+pkgver=1.1.0
+pkgrel=1
+pkgdesc="Small, safe and fast formatting library for C++"
+arch=('i686' 'x86_64')
+url="http://cppformat.github.io"
+license=('BSD')
+depends=('gcc-libs')
+conflicts=('cppformat-git')
+makedepends=('cmake')
+source=("https://github.com/cppformat/$pkgname/archive/$pkgver.tar.gz")
+sha256sums=('d859f7e520629351294e194f0d1fb889b1edda9a44c139b126562107c1783142')
+
+build() {
+ cd "$pkgname-$pkgver"
+ mkdir -p build && cd build
+
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DBUILD_SHARED_LIBS=1 \
+ -Wno-dev \
+ ..
+ make
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+ cd build
+ make test
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+
+ sed -n '/License/{:a;n;/Documentation License/b;p;ba}' README.rst | tail -n +1 >> LICENSE
+
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -D -m644 format.h "${pkgdir}/usr/include/format.h"
+
+ cd build
+
+ install -D -m755 libformat.so "$pkgdir/usr/lib/libformat.so"
+}
+