summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSandy Carter2019-03-28 09:52:45 -0400
committerSandy Carter2019-03-28 09:52:45 -0400
commit8135832ff0b59c09d909e603085d7f5660ff6123 (patch)
tree082441ed1edd7ff956b4d1569c45ace9df1e6368
downloadaur-8135832ff0b59c09d909e603085d7f5660ff6123.tar.gz
Initial package
-rw-r--r--.SRCINFO17
-rw-r--r--.gitignore2
-rw-r--r--PKGBUILD38
3 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..2175abd563d
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = sx-git
+ pkgdesc = Portable base library for C/C++ programs and games
+ pkgver = r111.5bbcfd7
+ pkgrel = 1
+ url = https://github.com/septag/sx
+ arch = any
+ license = BSD
+ makedepends = git
+ makedepends = cmake
+ depends = glibc
+ provides = sx
+ conflicts = sx
+ source = git://github.com/septag/sx
+ sha256sums = SKIP
+
+pkgname = sx-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..910674eb7cf
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+sx/
+*.pkg.tar.xz
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b436f1b537a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,38 @@
+pkgname=sx-git
+pkgver=r111.5bbcfd7
+pkgrel=1
+pkgdesc="Portable base library for C/C++ programs and games"
+arch=('any')
+url="https://github.com/septag/sx"
+license=('BSD')
+
+depends=('glibc')
+makedepends=('git' 'cmake')
+conflicts=("${pkgname%-git}")
+provides=("${pkgname%-git}")
+
+source=('git://github.com/septag/sx')
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "${srcdir}/${pkgname%-git}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "${srcdir}/${pkgname%-git}"
+ cmake -DCMAKE_INSTALL_PREFIX=/usr \
+ -DSX_SHARED_LIB=ON \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DCMAKE_BUILD_TYPE=RelWithDebInfo
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname%-git}"
+ make DESTDIR="$pkgdir" install
+
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et: