diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..169a53a6ef6e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: Caleb Maclennan <caleb@alerque.com> + +_appname=user_saml +pkgname=nextcloud-app-${_appname/_/-} +pkgver=3.2.3 +pkgrel=1 +pkgdesc="App for authenticating Nextcloud users using SAML" +arch=(x86_64) +url="https://github.com/nextcloud/$_appname" +license=(AGPL3) +depends=(nextcloud) +makedepends=(composer) +source=("$_appname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") +sha256sums=('b016905eee4f23b6ccc262f8e4f18e13bce59cb533d067533caaaf6d61be6bf9') + +prepare() { + cd "$_appname-$pkgver" + composer install --no-dev -d ./3rdparty/ +} + +package() { + cd "$_appname-$pkgver" + _appdir="$pkgdir/usr/share/webapps/nextcloud/apps/$_appname" + rsync -a --mkpath \ + --exclude=.drone.yml \ + --exclude=.git \ + --exclude=.gitattributes \ + --exclude=.github \ + --exclude=.gitignore \ + --exclude=.scrutinizer.yml \ + --exclude=.travis.yml \ + --exclude=.tx \ + --exclude=/build \ + --exclude=/CONTRIBUTING.md \ + --exclude=/docs \ + --exclude=/issue_template.md \ + --exclude=/l10n/l10n.pl \ + --exclude=/Makefile \ + --exclude=/README.md \ + --exclude=/screenshots \ + --exclude=/tests \ + --exclude=/translationfiles \ + ./ $_appdir/ +} |