summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxime Gauduin2017-05-01 21:03:03 +0200
committerMaxime Gauduin2017-05-01 21:03:03 +0200
commita0ee28bcec2767b04452c208a3791f0e788614e1 (patch)
treedff49c585e0bbdf23d193d635c8f306704c59218
downloadaur-a0ee28bcec2767b04452c208a3791f0e788614e1.tar.gz
Add switchboard-plug-printers-git
-rw-r--r--.SRCINFO30
-rw-r--r--PKGBUILD50
2 files changed, 80 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..016b69167ec
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,30 @@
+# Generated by mksrcinfo v8
+# Mon May 1 19:03:03 UTC 2017
+pkgbase = switchboard-plug-printers-git
+ pkgdesc = Switchboard Printers Plug
+ pkgver = r148.b074299
+ pkgrel = 1
+ url = https://github.com/elementary/switchboard-plug-printers
+ arch = i686
+ arch = x86_64
+ groups = pantheon-unstable
+ license = GPL3
+ makedepends = cmake
+ makedepends = git
+ makedepends = granite-git
+ makedepends = switchboard-git
+ makedepends = vala
+ depends = glib2
+ depends = glibc
+ depends = gtk3
+ depends = libcups
+ depends = libgee
+ depends = libgranite.so
+ depends = libswitchboard-2.0.so
+ provides = switchboard-plug-printers
+ conflicts = switchboard-plug-printers
+ source = git+https://github.com/elementary/switchboard-plug-printers.git
+ sha256sums = SKIP
+
+pkgname = switchboard-plug-printers-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a9d42813708
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,50 @@
+# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
+
+pkgname=switchboard-plug-printers-git
+pkgver=r148.b074299
+pkgrel=1
+pkgdesc='Switchboard Printers Plug'
+arch=('i686' 'x86_64')
+url='https://github.com/elementary/switchboard-plug-printers'
+license=('GPL3')
+groups=('pantheon-unstable')
+depends=('glib2' 'glibc' 'gtk3' 'libcups' 'libgee'
+ 'libgranite.so' 'libswitchboard-2.0.so')
+makedepends=('cmake' 'git' 'granite-git' 'switchboard-git' 'vala')
+provides=('switchboard-plug-printers')
+conflicts=('switchboard-plug-printers')
+source=('git+https://github.com/elementary/switchboard-plug-printers.git')
+sha256sums=('SKIP')
+
+pkgver() {
+ cd switchboard-plug-printers
+
+ echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd switchboard-plug-printers
+
+ if [[ -d build ]]; then
+ rm -rf build
+ fi
+ mkdir build
+}
+
+build() {
+ cd switchboard-plug-printers/build
+
+ cmake .. \
+ -DCMAKE_BUILD_TYPE='Release' \
+ -DCMAKE_INSTALL_PREFIX='/usr' \
+ -DCMAKE_INSTALL_LIBDIR='/usr/lib'
+ make
+}
+
+package() {
+ cd switchboard-plug-printers/build
+
+ make DESTDIR="${pkgdir}" install
+}
+
+# vim: ts=2 sw=2 et: