-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPKGBUILD
More file actions
50 lines (46 loc) · 1.31 KB
/
Copy pathPKGBUILD
File metadata and controls
50 lines (46 loc) · 1.31 KB
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
46
47
48
49
50
# Maintainer: aksr <aksr at t-com dot me>
pkgname=scrollz-git
pkgver=2.3.1.r1664.642cecf
pkgrel=1
pkgdesc="An advanced IRC client based on ircII client."
arch=('i686' 'x86_64')
url="https://github.com/ScrollZ/ScrollZ"
license=('custom')
depends=('ncurses' 'openssl')
makedepends=('git')
provides=("${pkgname%-*}")
conflicts=("${pkgname%-*}")
source=("$pkgname::git+https://github.com/ScrollZ/ScrollZ.git"
"fix-fortify-snprintf.patch"
"fix-mirc-256color.patch")
md5sums=('SKIP'
'SKIP'
'SKIP')
prepare() {
cd "$srcdir/$pkgname"
patch -p1 -N -i "$srcdir/fix-fortify-snprintf.patch" || true
patch -p1 -N -i "$srcdir/fix-mirc-256color.patch" || true
}
pkgver() {
cd "$srcdir/$pkgname"
printf "%s.r%s.%s" \
"$(git describe --tags | sed -E 's/ScrollZ-//;s/-.*//')" \
"$(git rev-list --count HEAD)" \
"$(git rev-parse --short HEAD)"
}
build() {
cd $srcdir/$pkgname
export CFLAGS="$CFLAGS -std=gnu89 -Wno-incompatible-pointer-types -Wno-implicit-function-declaration -Wno-implicit-int -Wno-int-conversion"
./configure \
--prefix=/usr \
--enable-regexp \
--enable-fish \
--with-openssl \
--with-default-server=chat.freenode.net:6667
make
}
package() {
cd $srcdir/$pkgname
make DESTDIR="$pkgdir/" install
install -D -m644 COPYRIGHT $pkgdir/usr/share/licenses/$pkgname/COPYRIGHT
}