2015-08-04 20:04:32 +02:00
|
|
|
# Maintainer: Martchus <martchus@gmx.net>
|
2016-03-25 21:43:59 +01:00
|
|
|
|
|
|
|
# All my PKGBUILDs are managed at https://github.com/Martchus/PKGBUILDs where
|
|
|
|
# you also find the URL of a binary repository.
|
|
|
|
|
2015-12-02 02:20:30 +01:00
|
|
|
_reponame=repoindex
|
2016-02-27 02:47:18 +01:00
|
|
|
pkgname=(repoindex{,-header,-web,-gui})
|
2016-10-03 14:23:34 +02:00
|
|
|
pkgver=0.2.6
|
2016-05-28 01:55:12 +02:00
|
|
|
pkgrel=1
|
2015-06-24 23:12:08 +02:00
|
|
|
arch=('i686' 'x86_64')
|
2016-09-11 23:37:58 +02:00
|
|
|
pkgdesc='Repository browser for Arch Linux'
|
2015-06-24 23:12:08 +02:00
|
|
|
license=('GPL')
|
2016-02-27 02:47:18 +01:00
|
|
|
depends=('qt5-websockets' 'qt5-webengine' 'karchive' 'c++utilities' 'qtutilities')
|
2020-10-04 01:04:01 +02:00
|
|
|
makedepends=('cmake' 'ninja' 'yuicompressor' 'qtutilities')
|
2016-02-07 21:43:03 +01:00
|
|
|
backup=("etc/${_reponame}.conf")
|
2015-12-02 02:20:30 +01:00
|
|
|
url="https://github.com/Martchus/${_reponame}"
|
2016-02-07 21:43:03 +01:00
|
|
|
options=(emptydirs)
|
2016-10-03 14:23:34 +02:00
|
|
|
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/Martchus/${_reponame}/archive/v${pkgver}.tar.gz")
|
2015-08-27 22:41:20 +02:00
|
|
|
sha256sums=('SKIP')
|
2015-06-24 23:12:08 +02:00
|
|
|
|
|
|
|
build() {
|
2015-12-24 16:50:30 +01:00
|
|
|
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
|
2016-05-28 01:55:12 +02:00
|
|
|
cmake \
|
2020-10-04 01:04:01 +02:00
|
|
|
-G Ninja \
|
2016-05-28 01:55:12 +02:00
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
2019-02-19 18:38:43 +01:00
|
|
|
-DWEBVIEW_PROVIDER=webengine \
|
|
|
|
.
|
2020-10-04 01:04:01 +02:00
|
|
|
ninja
|
2015-06-24 23:12:08 +02:00
|
|
|
}
|
|
|
|
|
2016-02-07 21:43:03 +01:00
|
|
|
package_repoindex() {
|
2016-02-27 21:08:28 +01:00
|
|
|
pkgdesc="Repository browser for Arch Linux (provides server binary)."
|
2016-02-27 02:47:18 +01:00
|
|
|
depends=('qt5-base' 'qt5-websockets' 'karchive' 'c++utilities')
|
|
|
|
optdepends=('repoindex-header: header files')
|
2016-05-28 01:55:12 +02:00
|
|
|
optdepends=('repoindex-web: files for web UI')
|
2016-02-27 02:47:18 +01:00
|
|
|
optdepends=('repoindex-gui: application showing the web UI')
|
2016-02-07 21:43:03 +01:00
|
|
|
|
|
|
|
# install files
|
2015-12-24 16:50:30 +01:00
|
|
|
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
|
2020-10-04 01:04:01 +02:00
|
|
|
DESTDIR="${pkgdir}" ninja install-binary install-service install-config install-bash-completion
|
2016-05-28 01:55:12 +02:00
|
|
|
rm "$pkgdir/usr/bin/repoindex-gui"
|
2016-02-07 21:43:03 +01:00
|
|
|
|
|
|
|
# make directories for cache and data
|
|
|
|
mkdir -p "$pkgdir/var/cache/$_reponame"
|
|
|
|
chown http:http "$pkgdir/var/cache/$_reponame"
|
2016-02-22 18:34:09 +01:00
|
|
|
mkdir -p "$pkgdir/var/lib/$_reponame/sync"
|
|
|
|
chown http:http "$pkgdir/var/lib/$_reponame/"{,sync}
|
2016-02-07 21:43:03 +01:00
|
|
|
mkdir -p "$pkgdir/etc"
|
|
|
|
cp "$pkgdir/usr/share/$_reponame/skel/repoindex.conf.js" "$pkgdir/etc/repoindex.conf"
|
2015-06-24 23:12:08 +02:00
|
|
|
}
|
|
|
|
|
2016-02-27 02:47:18 +01:00
|
|
|
package_repoindex-header() {
|
2016-05-28 01:55:12 +02:00
|
|
|
arch=('any')
|
2016-02-27 21:08:28 +01:00
|
|
|
pkgdesc="Repository browser for Arch Linux (provides header files)"
|
2016-02-27 02:47:18 +01:00
|
|
|
depends=('repoindex')
|
|
|
|
backup=()
|
|
|
|
|
|
|
|
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
|
|
|
|
|
|
|
|
# install files
|
2020-10-04 01:04:01 +02:00
|
|
|
DESTDIR="${pkgdir}" ninja install-header
|
2016-02-27 02:47:18 +01:00
|
|
|
}
|
|
|
|
|
2016-02-07 21:43:03 +01:00
|
|
|
package_repoindex-web() {
|
|
|
|
arch=('any')
|
2016-02-27 21:08:28 +01:00
|
|
|
pkgdesc="Repository browser for Arch Linux (provides assets for web interface)"
|
2016-02-07 21:43:03 +01:00
|
|
|
depends=('repoindex')
|
|
|
|
backup=()
|
|
|
|
|
|
|
|
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
|
|
|
|
|
|
|
|
# install files
|
2020-10-04 01:04:01 +02:00
|
|
|
DESTDIR="${pkgdir}" ninja install-web
|
2016-02-07 21:43:03 +01:00
|
|
|
}
|
2016-02-27 02:47:18 +01:00
|
|
|
|
|
|
|
package_repoindex-gui() {
|
|
|
|
arch=('any')
|
2016-02-27 21:08:28 +01:00
|
|
|
pkgdesc="Repository browser for Arch Linux (provides an desktop app showing the web UI)"
|
2016-02-27 02:47:18 +01:00
|
|
|
depends=('repoindex-web' 'qt5-webengine')
|
|
|
|
backup=()
|
|
|
|
|
|
|
|
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
|
|
|
|
|
|
|
|
# install files
|
2020-10-04 01:04:01 +02:00
|
|
|
DESTDIR="${pkgdir}" ninja install-binary install-desktop
|
2016-05-28 01:55:12 +02:00
|
|
|
rm -r "$pkgdir/usr/lib"
|
|
|
|
rm "$pkgdir/usr/bin/repoindex"
|
2016-02-27 02:47:18 +01:00
|
|
|
}
|