summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorhalosghost2019-05-17 19:41:06 -0500
committerhalosghost2019-05-17 19:42:06 -0500
commit2f018434dfcdcf29778c073d96c9c8a2da0f6250 (patch)
tree5b60af922356c1a6fe4d0bfa4750d68343ff8baf
downloadaur-2f018434dfcdcf29778c073d96c9c8a2da0f6250.tar.gz
Initial commit
-rw-r--r--.SRCINFO26
-rw-r--r--PKGBUILD58
2 files changed, 84 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..fe7768d0937
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,26 @@
+pkgbase = polkit-no-script-git
+ pkgdesc = A polkit-fork with no javascript dependency
+ pkgver = 0.113+35+g5bcb1c1
+ pkgrel = 1
+ url = https://github.com/getsolus/polkit-no-script.git
+ arch = x86_64
+ license = LGPL
+ makedepends = intltool
+ makedepends = gtk-doc
+ makedepends = gobject-introspection
+ makedepends = git
+ makedepends = autoconf-archive
+ makedepends = automake
+ depends = glib2
+ depends = pam
+ depends = expat
+ depends = systemd
+ provides = polkit-no-script
+ provides = polkit
+ conflicts = polkit-no-script
+ conflicts = polkit
+ source = git+https://github.com/ikeydoherty/polkit-no-script.git#branch=noscript-3
+ sha256sums = SKIP
+
+pkgname = polkit-no-script-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..09c6ab6a1d4
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,58 @@
+# Maintainer: HalosGhost <samuel dot stuewe at gmail dot com>
+
+pkgname=polkit-no-script-git
+pkgver=0.113+35+g5bcb1c1
+pkgrel=1
+pkgdesc='A polkit-fork with no javascript dependency'
+arch=(x86_64)
+license=(LGPL)
+url="https://github.com/getsolus/polkit-no-script.git"
+depends=(glib2 pam expat systemd)
+makedepends=(intltool gtk-doc gobject-introspection git autoconf-archive automake)
+provides=("${pkgname%-git}" polkit)
+conflicts=("${pkgname%-git}" polkit)
+source=("git+https://github.com/ikeydoherty/polkit-no-script.git#branch=noscript-3")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "${pkgname%-git}"
+ git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+ cd "${pkgname%-git}"
+ NOCONFIGURE=1 ./autogen.sh
+}
+
+build() {
+ cd "${pkgname%-git}"
+
+ ./configure --prefix=/usr --sysconfdir=/etc \
+ --localstatedir=/var --libexecdir=/usr/lib \
+ --enable-libsystemd-login=yes --disable-static \
+ --enable-gtk-doc --with-os-type=redhat \
+ --with-backend=keyfile --disable-test
+
+ sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+
+ make
+}
+
+#check() {
+# cd "${pkgname%-git}"
+# make -k check || :
+#}
+
+package() {
+ cd "${pkgname%-git}"
+ make DESTDIR="$pkgdir" install
+
+ install -d -o root -g 102 -m 750 "$pkgdir"/{etc,usr/share}/polkit-1/rules.d
+
+ install -Dm644 /dev/stdin "$pkgdir/usr/lib/sysusers.d/$pkgname.conf" <<END
+u polkitd 102 "PolicyKit daemon"
+m polkitd proc
+END
+}
+
+# vim: ts=2 sw=2 et: