Skip to content

Instantly share code, notes, and snippets.

@ChrisLane
Created April 3, 2018 16:21
Show Gist options
  • Save ChrisLane/d75f21be8ce743378aa3fdf8a8a9171b to your computer and use it in GitHub Desktop.
Save ChrisLane/d75f21be8ce743378aa3fdf8a8a9171b to your computer and use it in GitHub Desktop.
# 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