aboutsummaryrefslogtreecommitdiffstats
path: root/testing/fish-irssi/APKBUILD
blob: 270f7a736922b62d65c41478152046b291cd58dd (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=fish-irssi
pkgver=1.4
pkgrel=0
pkgdesc="irssi FiSH plugin"
url="https://github.com/falsovsky/FiSH-irssi"
arch="all"
license="custom"
depends=""
depends_dev=""
makedepends="$depends_dev irssi-dev openssl-dev glib-dev cmake"
install=""
subpackages="$pkgname-doc"
source="FiSH-irssi-$pkgver.tar.gz::https://github.com/falsovsky/FiSH-irssi/archive/$pkgver.tar.gz"

_builddir="$srcdir"/FiSH-irssi-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddirs"
        cmake \
                -DCMAKE_INSTALL_PREFIX=/usr \
                -DBUILD_SHARED_LIBS=True \
                -DCMAKE_BUILD_TYPE=Release \
                || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return
}

md5sums="cf3a77c87e5b7377a8f6d544c24549bb  FiSH-irssi-1.4.tar.gz"
sha256sums="2aa3efd91e23e2dde538168394c9c9eb86372340a672b3419c8aaaebdc93c48a  FiSH-irssi-1.4.tar.gz"
sha512sums="445c9b3d447d69550693344bcab365a2a3ef66244e6ea30a8a2ed9a3f0027fb325336ec86c872e3b1cf9bd40453bcad6f151634a37727ec85bd5aee5b4c6db20  FiSH-irssi-1.4.tar.gz"