mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-01-24 09:52:15 +08:00
53 lines
1.7 KiB
Bash
53 lines
1.7 KiB
Bash
# Lib32 Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# Maintainer: AlmAck <almack@chakra-project.org>
|
|
# Contributor: jtts
|
|
|
|
_pkgbasename=polkit
|
|
pkgname=lib32-$_pkgbasename
|
|
pkgver=0.112
|
|
pkgrel=2
|
|
pkgdesc="Application development toolkit for controlling system-wide privileges (32-bit)"
|
|
arch=('x86_64')
|
|
license=(LGPL)
|
|
url="http://www.freedesktop.org/wiki/Software/polkit"
|
|
depends=('lib32-glib2' 'lib32-pam' 'lib32-expat' 'lib32-systemd' 'lib32-js' $_pkgbasename=$pkgver)
|
|
makedepends=('intltool')
|
|
# Not needed. This is a lib32-package.
|
|
#install=polkit.install
|
|
#conflicts=(js185 lib32-js185)
|
|
source=(http://www.freedesktop.org/software/polkit/releases/$_pkgbasename-$pkgver.tar.gz)
|
|
# Not needed. This is a lib32-package.
|
|
# polkit.pam)
|
|
sha256sums=('d695f43cba4748a822fbe864dd32c4887c5da1c71694a47693ace5e88fcf6af6')
|
|
#md5sums=('b0f2fa00a55f47c6a5d88e9b73f80127')
|
|
# '6564f95878297b954f0572bc1610dd15')
|
|
|
|
|
|
# add --with-mozjs=mozjs-17.0 \ when lib32-js is updated > 17.0.0
|
|
build() {
|
|
cd $_pkgbasename-$pkgver
|
|
|
|
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
|
|
--libdir=/usr/lib32 --libexecdir=/usr/lib32/polkit-1 \
|
|
--with-systemdsystemunitdir=/usr/lib/systemd/system \
|
|
--disable-static --enable-introspection=no --enable-libsystemd-login=yes \
|
|
--enable-man-pages=no --disable-gtk-doc \
|
|
CC="gcc -m32" CXX="g++ -m32" PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd $_pkgbasename-$pkgver
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
# Not needed. This is a lib32-package.
|
|
#chown 102 "$pkgdir/etc/polkit-1/rules.d"
|
|
#chown 102 "$pkgdir/usr/share/polkit-1/rules.d"
|
|
#
|
|
#install -m644 "$srcdir/polkit.pam" "$pkgdir/etc/pam.d/polkit-1"
|
|
|
|
# cleanup for lib32 package
|
|
rm -rf $pkgdir/{etc,usr/{bin,lib,include,share}}
|
|
}
|