summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuiz Henrique Laurini2019-12-19 11:50:42 -0300
committerLuiz Henrique Laurini2019-12-19 11:50:42 -0300
commitd1fc15240f3e3ab84f7e649ad51c4a7556086ba9 (patch)
tree7a44aa0668533ef130314ff8082eb8a7eb9e1cd1
downloadaur-d1fc15240f3e3ab84f7e649ad51c4a7556086ba9.tar.gz
First commit
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD34
2 files changed, 47 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c536a4cf06c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,13 @@
+pkgbase = textar
+ pkgdesc = tar-like program for creating plain text archives from plain text files
+ pkgver = 0.1.0
+ pkgrel = 1
+ url = https://github.com/LHLaurini/textar
+ arch = x86_64
+ license = MIT
+ makedepends = cmake
+ source = https://github.com/LHLaurini/textar/archive/v0.1.0.tar.gz
+ md5sums = 6596b17e3c72434b6bd60c5e2e3a3a0f
+
+pkgname = textar
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..afd78901f10
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Luiz Henrique Laurini <luizhenriquelaurini at gmail dot com>
+pkgname=textar
+pkgver=0.1.0
+pkgrel=1
+pkgdesc="tar-like program for creating plain text archives from plain text files"
+arch=('x86_64')
+url="https://github.com/LHLaurini/textar"
+license=('MIT')
+makedepends=('cmake')
+options=()
+source=(https://github.com/LHLaurini/$pkgname/archive/v$pkgver.tar.gz)
+md5sums=('6596b17e3c72434b6bd60c5e2e3a3a0f')
+
+build()
+{
+ cd "$pkgname-$pkgver"
+ mkdir -p build
+ cd build
+ cmake .. -DCMAKE_INSTALL_PREFIX=/usr
+ cmake --build .
+}
+
+check()
+{
+ cd "$pkgname-$pkgver/build/tests"
+ ctest
+}
+
+package()
+{
+ cd "$pkgname-$pkgver/build"
+ DESTDIR=$pkgdir cmake --build . --target install
+}
+