# Maintainer: Daniel Landau # Contributor: Prurigro # Ported from the package by AlexanderR pkgname=fdroidserver pkgver=0.8 epoch=2 pkgrel=1 pkgdesc="F-Droid repository management tools" url="https://gitlab.com/fdroid/$pkgname" license=('GPL3') depends=('python' 'python-pyasn1' 'python-pyasn1-modules' 'python-magic' 'python-requests' 'python-yaml') makedepends=('python-setuptools' 'python-pillow' 'python-paramiko' 'java-environment') optdepends=( 'android-sdk: Build apps from source' 'android-sdk-build-tools: Work with apks in the repository' 'android-sdk-platform-tools: Ability to install apps to connected devices' 'android-ndk: Build apps that use native code' 'java-runtime: Run a repository' 'apache-ant: Build apps using Apache Ant' 'maven: Build apps using Maven' 'gradle: Build apps using Gradle' 'android-support-repository: Build apps using Maven or Gradle that use support libraries' 'git: Download app sources that use git or svn (via git svn)' 'mercurial: Download app sources that use hg' 'bzr: Download app sources that use bzr' 'python-pillow: Resize and manage app icons' 'python-paramiko: SSH2 support' 'rsync: Transfer repo files to the web server' 'vagrant: Buildserver virtual machine support' 'virtualbox: Buildserver virtual machine support' 'wordpress: Web repository plugin' ) arch=('any') options=(!emptydirs) source=("https://gitlab.com/fdroid/${pkgname}/repository/archive.tar.gz?ref=${pkgver}") sha256sums=('af5a58da9592f40623229328d9d96998ebfd448d3ccd5f134a5ee53d7c4ef786') package() { cd "${srcdir}/${pkgname}-${pkgver}-"* python setup.py install --root="$pkgdir/" --optimize=1 --install-data="/tmp" || true rm -rf "$pkgdir/tmp" mkdir -p "$pkgdir/usr/bin" install "fdroid" "$pkgdir/usr/bin" install "fd-commit" "$pkgdir/usr/bin" install -D completion/bash-completion "$pkgdir/usr/share/bash-completion/completions/fdroidserver" install -D "examples/config.py" "$pkgdir/usr/share/$pkgname/config.sample.py" mkdir -p "$pkgdir/opt/android-sdk/tools" }