PKGBUILDs/repoindex/git/PKGBUILD

31 lines
721 B
Bash
Raw Normal View History

2015-08-26 21:21:22 +02:00
# Maintainer: Martchus <martchus@gmx.net>
pkgname=repoindex
pkgver=1.0.0
pkgrel=2
arch=('i686' 'x86_64')
pkgdesc="Provides a web interface to browse Arch Linux package repositories."
license=('GPL')
depends=('qt5-base' 'qt5-network' 'pacman' 'c++utilities')
makedepends=
url="https://github.com/Martchus/repoindex"
source=("${pkgname}::git://github.com/Martchus/repoindex.git")
_reponame=repoindex
sha256sums=('skip')
pkgver() {
cd "${srcdir}/${pkgname}"
echo "$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}
build() {
cd "${srcdir}/${pkgname}"
INSTALL_ROOT=$pkgdir/usr/ qmake-qt5 "$pkgname.pro" -r -spec linux-g++
make
}
package() {
cd "${srcdir}/${pkgname}"
make install
}