summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 38a90f3b1ef92279aea8131933dd476e511295b2 (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
48
49
50
51
52
53
54
55
56
57
58
# Maintainer: Alexandre Bouvier <contact@amb.tf>
# Contributor: Bernard Baeyens (berbae) <berbae52 at sfr dot fr>
_pkgname=freetuxtv
pkgname=$_pkgname-git
pkgver=0.6.8.r45.gc5781e5
pkgrel=3
pkgdesc="Internet television and radio player"
arch=('aarch64' 'armv7h' 'i486' 'i686' 'pentium4' 'x86_64')
url="https://github.com/freetuxtv/freetuxtv"
license=('GPL3')
depends=('vlc')
makedepends=(
	'cmake'
	'curl'
	'gdk-pixbuf2'
	'git'
	'glib2'
	'glibc'
	'gtk3'
	'intltool'
	'libnotify'
	'pango'
	'sqlite'
)
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("$_pkgname::git+$url.git")
b2sums=('SKIP')

pkgver() {
	cd $_pkgname
	git describe --long | sed 's/^freetuxtv-//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cmake -S $_pkgname -B build \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-Wno-dev
	cmake --build build
}

package() {
	depends+=(
		'libcurl.so'
		'libgdk-3.so'
		'libgdk_pixbuf-2.0.so'
		'libgio-2.0.so'
		'libglib-2.0.so'
		'libgobject-2.0.so'
		'libgtk-3.so'
		'libnotify.so'
		'libpango-1.0.so'
	)
	# shellcheck disable=SC2154
	DESTDIR="$pkgdir" cmake --install build
}