blob: d33dde8e82c3d0f7109863b0045c12f9f5e769d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
pkgname=grumpy-irc-git
_pkgname=grumpy-irc
pkgver=v1.0.0.alpha.r250.g2c98a36
pkgrel=1
pkgdesc="Modern, yet oldschool IRC client with distributed core, written in C++"
arch=('i686' 'x86_64')
url="https://github.com/grumpy-irc/grumpy"
license=('LGPL3')
depends=('qt5-base')
makedepends=('unzip' 'cmake' 'git')
conflicts=('grumpy-irc' 'libircclient')
provides=('grump-irc' 'libircclient')
source=("$_pkgname::git+$url")
sha256sums=('SKIP')
pkgver() {
cd "$_pkgname"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare(){
cd "$srcdir/$_pkgname"
git submodule update --init --recursive
rm -rf build
mkdir build
cd src/sqlite
unzip sqlite-amalgamation-3220000.zip
mv sqlite-amalgamation-3220000/* .
}
build() {
cd "$srcdir/$_pkgname"
cd build
cmake ../src \
-DCMAKE_BUILD_TYPE='Release' \
-DCMAKE_INSTALL_PREFIX='/usr' \
-DCMAKE_INSTALL_LIBDIR='/usr/lib'
make
}
package() {
cd "$srcdir/$_pkgname"
make -C build DESTDIR="$pkgdir" install
}
|