-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPKGBUILD
38 lines (34 loc) · 881 Bytes
/
PKGBUILD
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
# Maintainer: Přemysl Janouch <[email protected]>
pkgname=zyklonb-git
_pkgname=ZyklonB
pkgver=r141.ea72676
pkgrel=1
pkgdesc="Experimental IRC bot & daemon"
url="https://github.com/pjanouch/ZyklonB"
arch=('i686' 'x86_64')
license=('BSD')
options=(zipman)
conflicts=('zyklonb')
provides=('zyklonb')
makedepends=('cmake' 'pkg-config' 'git' 'help2man')
depends=('openssl')
source=('git+https://github.com/pjanouch/ZyklonB.git')
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$_pkgname"
( set -o pipefail
git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
build() {
cd $srcdir/$_pkgname
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
make
}
package() {
cd $srcdir/$_pkgname/build
make install DESTDIR=$pkgdir
}