Created
April 3, 2018 16:21
-
-
Save ChrisLane/d75f21be8ce743378aa3fdf8a8a9171b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Daniel Albers <[email protected]> | |
# Source: <https://github.com/AlD/archlinux/tree/master/pkgbuilds/quassel> | |
pkgbase='quassel' | |
pkgname=( | |
"${pkgbase}-core-git" | |
) | |
pkgver=0.12.0.512.ga8360815 | |
pkgrel=1 | |
url='http://quassel-irc.org' | |
license=('GPL') | |
arch=('i686' 'x86_64' 'arm' 'aarch64') | |
makedepends=('git' 'cmake') | |
source=( | |
'git+https://github.com/quassel/quassel.git' | |
#'git://git.quassel-irc.org/quassel.git' | |
) | |
md5sums=('SKIP') | |
_srcdir="${startdir}/src/${pkgbase}" | |
_builddir="${startdir}/build" | |
_cmakecache="CMakeCache.txt" | |
pkgver() { | |
pushd "${srcdir}/${pkgbase}" > /dev/null | |
#git describe --always | sed 's/-beta/.0.beta/; s/-/./g;' | |
git describe --always | sed 's/-/./g;' | |
popd > /dev/null | |
} | |
_prepare_build() { | |
msg 'Preparing build directory...' | |
mkdir -p "$_builddir" | |
pushd "$_builddir" > /dev/null | |
rm -f "$_cmakecache" | |
popd > /dev/null | |
} | |
_build() { | |
pushd "$_builddir" > /dev/null | |
msg 'Compiling...' | |
make | |
make DESTDIR="$pkgdir" install | |
} | |
package_quassel-core-git() { | |
pkgdesc='KDE/Qt-based distributed IRC client (core only)' | |
depends=('qt5-base' 'qt5-script' 'qca-qt5') | |
provides=('quassel-core') | |
conflicts=('quassel-core') | |
_prepare_build | |
pushd "$_builddir" >/dev/null | |
msg 'Configuring build options...' | |
cmake -DWANT_MONO=OFF \ | |
-DWANT_CORE=ON \ | |
-DWANT_QTCLIENT=OFF \ | |
-DHAVE_SSL=ON \ | |
-DCMAKE_INSTALL_PREFIX=/usr \ | |
-DUSE_QT5=ON \ | |
"$_srcdir" | |
popd >/dev/null | |
_build | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment