summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b28675882511f9bdc1f59bf0c54d929851ce707f (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
# Maintainer:  twa022 <twa022 at gmail dot com>
# Contributor: Frederic Bezies <fredbezies at gmail dot com> 
# Contributor: swanson <webaake gmail com>

_pkgname=mousepad
pkgname=${_pkgname}-git
pkgver=0.5.4+142+gd71a464
pkgrel=1
pkgdesc="Simple text editor for Xfce  (git checkout)"
arch=('x86_64' 'i686' 'armv7h' 'aarch64')
url="http://www.xfce.org/"
license=('GPL')
depends=('gtksourceview4' 'desktop-file-utils' 'hicolor-icon-theme')
makedepends=('xfce4-dev-tools' 'git' 'intltool')
provides=("${_pkgname}=${pkgver%.r*}")
conflicts=("${_pkgname}")
source=("${_pkgname}::git+https://gitlab.xfce.org/apps/${_pkgname}")
sha256sums=('SKIP')

pkgver() {
	cd "${srcdir}/${_pkgname}"
	
	git describe --long --tags | sed -r "s:^${_pkgname}.::;s/^v//;s/^xfce-//;s/-/+/g"
}

build() {
	cd "${srcdir}/${_pkgname}"

	./autogen.sh \
		--prefix=/usr \
		--sysconfdir=/etc \
		--libexecdir=/usr/lib/xfce4 \
		--disable-static \
		--disable-debug \
		--enable-gtksourceview4
	
	make  
}

package() {
	cd "${srcdir}/${_pkgname}"
	
	make DESTDIR="$pkgdir" install
}