summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fa9950abf20f191455ed6ffb127151f0d78c161c (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
# Maintainer: Guillaume Hayot <ghayot@postblue.info>
pkgname=parlatype
pkgver=1.5
pkgrel=4
pkgdesc="GNOME audio player for transcription"
arch=('any')
url="https://gkarsay.github.io/parlatype/"
license=('GPL')
depends=('gtk3' 'gst-plugins-base' 'gst-plugins-good')
makedepends=('gobject-introspection' 'libreoffice' 'yelp-tools' 'intltool' 'glade' 'gtk-doc')
optdepends==('libreoffice: LibreOffice macros')
source=("https://github.com/gkarsay/$pkgname/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz")
noextract=()
md5sums=('8de6ae7bb0f261b4f48effbe133684c5')

prepare() {
	cd "$pkgname-$pkgver"
}

build() {
	cd "$pkgname-$pkgver"
	autoreconf
	# Parlatype ships its own library, libparlatype. Developers might be interested in having a library documentation,
	# gobject introspection and a glade catalog for the widgets. These are the configure options:
	# --enable-gtk-doc: install library documentation (default: no)
	# --enable-introspection: install gobject introspection (default: yes)
	# --enable-glade-catalog: install a glade catalog (default: no)
	# --with-libreoffice: install LibreOffice macros (default: yes)
	# If you want the program only, you would use --prefix=/usr --disable-introspection.
	./configure --prefix=/usr --enable-gtk-doc --enable-glade-catalog
	make
}

check() {
	cd "$pkgname-$pkgver"
	make -k check
}

package() {
	cd "$pkgname-$pkgver"
	make DESTDIR="$pkgdir/" install
}