summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxime Gauduin2017-05-01 22:53:04 +0200
committerMaxime Gauduin2017-05-01 22:53:04 +0200
commitad712dc29d20ca5a5a3e7368d7d08abed39640b0 (patch)
tree5ac740e4bcc48ea4c36775713d2947b3713edb43
downloadaur-ad712dc29d20ca5a5a3e7368d7d08abed39640b0.tar.gz
Add switchboard-plug-parental-controls-git
-rw-r--r--.SRCINFO34
-rw-r--r--PKGBUILD55
-rw-r--r--systemd-service-install-dir.patch9
3 files changed, 98 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..87fee3d281c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,34 @@
+# Generated by mksrcinfo v8
+# Mon May 1 20:53:04 UTC 2017
+pkgbase = switchboard-plug-parental-controls-git
+ pkgdesc = Switchboard Parental Controls Plug
+ pkgver = r334.db7f66c
+ pkgrel = 1
+ url = https://github.com/elementary/switchboard-plug-parental-controls
+ arch = i686
+ arch = x86_64
+ groups = pantheon-unstable
+ license = GPL3
+ makedepends = cmake
+ makedepends = git
+ makedepends = granite-git
+ makedepends = switchboard-git
+ makedepends = vala
+ depends = accountsservice
+ depends = gdk-pixbuf2
+ depends = glib2
+ depends = glibc
+ depends = gtk3
+ depends = libgee
+ depends = polkit
+ depends = libgranite.so
+ depends = libswitchboard-2.0.so
+ provides = switchboard-plug-parental-controls
+ conflicts = switchboard-plug-parental-controls
+ source = git+https://github.com/elementary/switchboard-plug-parental-controls.git
+ source = systemd-service-install-dir.patch
+ sha256sums = SKIP
+ sha256sums = 73d98773379872f7fe8ac570faf8d3ce01ab2495784fac4569ac596f77706591
+
+pkgname = switchboard-plug-parental-controls-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b0777d62d93
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,55 @@
+# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
+
+pkgname=switchboard-plug-parental-controls-git
+pkgver=r334.db7f66c
+pkgrel=1
+pkgdesc='Switchboard Parental Controls Plug'
+arch=('i686' 'x86_64')
+url='https://github.com/elementary/switchboard-plug-parental-controls'
+license=('GPL3')
+groups=('pantheon-unstable')
+depends=('accountsservice' 'gdk-pixbuf2' 'glib2' 'glibc' 'gtk3' 'libgee'
+ 'polkit'
+ 'libgranite.so' 'libswitchboard-2.0.so')
+makedepends=('cmake' 'git' 'granite-git' 'switchboard-git' 'vala')
+provides=('switchboard-plug-parental-controls')
+conflicts=('switchboard-plug-parental-controls')
+source=('git+https://github.com/elementary/switchboard-plug-parental-controls.git'
+ 'systemd-service-install-dir.patch')
+sha256sums=('SKIP'
+ '73d98773379872f7fe8ac570faf8d3ce01ab2495784fac4569ac596f77706591')
+
+pkgver() {
+ cd switchboard-plug-parental-controls
+
+ echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd switchboard-plug-parental-controls
+
+ if [[ -d build ]]; then
+ rm -rf build
+ fi
+ mkdir build
+
+ patch -Np1 -i ../systemd-service-install-dir.patch
+}
+
+build() {
+ cd switchboard-plug-parental-controls/build
+
+ cmake .. \
+ -DCMAKE_BUILD_TYPE='Release' \
+ -DCMAKE_INSTALL_PREFIX='/usr' \
+ -DCMAKE_INSTALL_LIBDIR='/usr/lib'
+ make
+}
+
+package() {
+ cd switchboard-plug-parental-controls/build
+
+ make DESTDIR="${pkgdir}" install
+}
+
+# vim: ts=2 sw=2 et:
diff --git a/systemd-service-install-dir.patch b/systemd-service-install-dir.patch
new file mode 100644
index 00000000000..602808a5996
--- /dev/null
+++ b/systemd-service-install-dir.patch
@@ -0,0 +1,9 @@
+diff -rupN switchboard-plug-parental-controls.orig/data/CMakeLists.txt switchboard-plug-parental-controls/data/CMakeLists.txt
+--- switchboard-plug-parental-controls.orig/data/CMakeLists.txt 2017-05-01 22:50:23.207664431 +0200
++++ switchboard-plug-parental-controls/data/CMakeLists.txt 2017-05-01 22:50:42.357135219 +0200
+@@ -7,4 +7,4 @@ install (FILES ${CMAKE_CURRENT_BINARY_DI
+ install (FILES ${CMAKE_CURRENT_BINARY_DIR}/org.pantheon.ParentalControls.service DESTINATION share/dbus-1/system-services)
+ install (FILES org.pantheon.ParentalControls.conf DESTINATION /etc/dbus-1/system.d)
+ install (FILES pantheon-parental-controls-client.desktop DESTINATION share/applications)
+-install (FILES ${CMAKE_CURRENT_BINARY_DIR}/data/pantheon-parental-controls.service DESTINATION /lib/systemd/system)
++install (FILES ${CMAKE_CURRENT_BINARY_DIR}/data/pantheon-parental-controls.service DESTINATION lib/systemd/system)