summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBaptiste Jonglez2015-06-25 09:49:45 +0200
committerBaptiste Jonglez2015-06-25 09:49:45 +0200
commit8064991a30ce6decff7501d498d3e80c498eec5d (patch)
tree4cc2a41a89c8732470b17d9c51eb32fec9f04dd3
downloadaur-8064991a30ce6decff7501d498d3e80c498eec5d.tar.gz
Initial upload: libringclient-git 20150623-1
Initial upload: ring-daemon-git 20150623-1 Initial upload: ring-gnome-client-git 20150526-1
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD45
2 files changed, 65 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..0232c0da16e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = libringclient-git
+ pkgdesc = Client communication library for Ring (formerly known as SFLphone)
+ pkgver = 20150623
+ pkgrel = 1
+ url = http://ring.cx
+ arch = i686
+ arch = x86_64
+ groups = ring
+ license = GPL3
+ makedepends = git
+ makedepends = cmake
+ depends = ring-daemon-git
+ depends = qt5-base
+ provides = libringclient
+ conflicts = libringclient
+ source = git+https://gerrit-ring.savoirfairelinux.com/ring-lrc
+ md5sums = SKIP
+
+pkgname = libringclient-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f2ff4425612
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,45 @@
+# Maintainer: Baptiste Jonglez <baptiste--aur at jonglez dot org>
+pkgname=libringclient-git
+pkgver=20150623
+pkgrel=1
+pkgdesc="Client communication library for Ring (formerly known as SFLphone)"
+arch=("i686" "x86_64")
+url="http://ring.cx"
+license=('GPL3')
+groups=("ring")
+depends=("ring-daemon-git" "qt5-base")
+makedepends=('git' 'cmake')
+provides=('libringclient')
+conflicts=('libringclient')
+source=("git+https://gerrit-ring.savoirfairelinux.com/ring-lrc")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "ring-lrc"
+ git log -1 --format="%cd" --date=short | sed "s|-||g"
+}
+
+build() {
+ cd "ring-lrc"
+
+ msg2 'Building...'
+ mkdir -p build
+ cd build
+ cmake .. \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release
+ make
+}
+
+package() {
+ cd "ring-lrc/build"
+
+ msg2 'Installing...'
+ make DESTDIR="$pkgdir" install
+
+ msg2 'Cleaning up pkgdir...'
+ find "$pkgdir" -type d -name .git -exec rm -r '{}' +
+ find "$pkgdir" -type f -name .gitignore -exec rm -r '{}' +
+}
+
+# vim:set ts=2 sw=2 et: