summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0c6fc97e3018416c989066a8f53539345ed604f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Maintainer: cyqsimon <28627918+cyqsimon@users.noreply.github.com>

pkgname=libuser-ldap
_srcname=libuser
pkgver=0.64
pkgrel=1
pkgdesc='LDAP module for libuser'
arch=('i686' 'x86_64')
license=('LGPL')
url='https://pagure.io/libuser/'
depends=('libuser' 'libldap')
makedepends=('autoconf' 'automake' 'gettext' 'libtool')
source=("https://pagure.io/$_srcname/archive/$_srcname-$pkgver/$_srcname-$_srcname-$pkgver.tar.gz")
sha512sums=('7ca7aaa202072694977300b53f528aad562a92188d464e83f79902ee72b707be5eb850ec2c71a51076775b39c5c6f472f86c3578a66d3a92659b0a67b303118b')

prepare() {
  cd $_srcname-$_srcname-$pkgver

  sed -i '/^gtkdocize/ s/^/#/' autogen.sh # comment out `gtkdocize` call
  sed -i '/^SUBDIRS/d' docs/Makefile.am # remove `SUBDIRS` line
  sed -i '/^AC_CONFIG_FILES/ s_docs/reference/Makefile__' configure.ac # remove `docs/reference/Makefile` from `AC_CONFIG_FILES`
}

build() {
  cd $_srcname-$_srcname-$pkgver
  ./autogen.sh
  ./configure \
    --prefix=/usr \
    --sysconfdir=/etc \
    --sbindir=/usr/bin \
    --disable-gtk-doc \
    --disable-gtk-doc-html \
    --disable-rpath \
    --with-ldap
  sed -i 's/SUBDIRS = po docs/SUBDIRS = po/' Makefile
  make
}

package() {
  cd $_srcname-$_srcname-$pkgver
  install -m755 -D ./modules/.libs/libuser_ldap.so "$pkgdir/usr/lib/libuser/libuser_ldap.so"
}