aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/snorenotify/APKBUILD
blob: 23f6d8ca9b1d3cdceee5c481cf4bff80cde0c364 (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
46
47
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=snorenotify
pkgver=0.5.2
pkgrel=0
pkgdesc="Snorenotify is a multi platform Qt notification framework"
url="https://github.com/Snorenotify/Snorenotify"
arch="all"
license="LGPL3"
depends=""
depends_dev="qt-dev"
makedepends="$depends_dev cmake doxygen"
install=""
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/Snorenotify/Snorenotify/archive/v$pkgver.tar.gz"

_builddir="$srcdir"/Snorenotify-$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() {
        mkdir -p "$_builddir"/build
        cd "$_builddir"/build
        cmake "$_builddir" \
                -DCMAKE_BUILD_TYPE=Release \
                -DCMAKE_INSTALL_PREFIX=/usr \
                -DCMAKE_INSTALL_LIBDIR=lib \
                || return 1
        make || return 1
}

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

md5sums="508dafd77c2cb1b57239c1dc6ad73727  snorenotify-0.5.2.tar.gz"
sha256sums="105d09fc7bbf2da357046d8227f4530eac4fc027f7a90d0c7dc984b4a337649d  snorenotify-0.5.2.tar.gz"
sha512sums="d86c061d4dbda002391333e62b987690916526866b9dd1904304ef92b314cb2f7812c46477666f22508803fbffeeaabea85f00e65389ffa5041dbc92f2241808  snorenotify-0.5.2.tar.gz"