summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5a2a8ff90ec8c4200f0371e5b840c32c2fbe87b6 (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
# Maintainer: Oliver Paschke <oli.paschke@gmail.com>

pkgname=tt-rss-auth-ldap-git
_gitname=TTRSS-Auth-LDAP
pkgver=r60.582ade4
pkgrel=1
pkgdesc="Tiny Tiny RSS plugin for LDAP authentication"
arch=('any')
url="https://github.com/hydrian/TTRSS-Auth-LDAP"
license=('Apache')
depends=('tt-rss' 'php-ldap')
makedepends=('git')
provides=('tt-rss-auth-ldap')
conflicts=('tt-rss-auth-ldap')
source=('git+https://github.com/hydrian/TTRSS-Auth-LDAP.git')
md5sums=('SKIP')

pkgver() {
  cd "$_gitname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  _instdir="$pkgdir/usr/share/webapps/tt-rss/plugins.local/auth_ldap/"
  cd "$_gitname"
  install -d -m755 "$_instdir"
  install -D -m644 plugins/auth_ldap/init.php "$_instdir"
}