summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1d7b8f9595098818f5fb274a56866db1a162ebbb (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
59
60
61
62
# Maintainer: ian <ian at kremlin dot cc>
pkgname=bashstyle-git
pkgver=0.10.3.r11.g3613554
pkgrel=1
pkgdesc="A PyGTK client for managing bash, readline, vim, and nano settings (git version)"
arch=('any')
url="https://github.com/Nanolx/bashstyle-ng"
license=('GPL3')
groups=('system')
depends=('python2' 'dmidecode' 'gawk' 'sed' 'bc' 'gettext' 'less' 'libnewt' 'python2-configobj' 'python2-gobject' 'hicolor-icon-theme')
makedepends=('git')
optdepends=("acpi: showbatteryload support" "tree: fs support")
conflicts=('bashstyle')
provides=('bashstyle')
source=('git+https://github.com/Nanolx/bashstyle-ng.git')
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/bashstyle-ng"
	 git describe --long | sed 's/^bashstyleng-/0./;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
	cd "$srcdir/bashstyle-ng"
	./configure --python=/usr/bin/python --no-postinstall
	./make build
}

package() {
	cd "$srcdir/bashstyle-ng"
mkdir -p $pkgdir/usr/share/doc/bashstyle-ng
	DESTDIR="$pkgdir/" ./make install

	# get rid of locales if already present
	#if [ -f /usr/share/locale/de/LC_MESSAGES/bs-ng-wizard.mo ]; then
	#	rm $pkgdir/usr/share/locale/de/LC_MESSAGES/bs-ng-wizard.mo
	#fi
	if [ -f /usr/share/locale/de/LC_MESSAGES/bs-ng.mo ]; then
		rm $pkgdir/usr/share/locale/de/LC_MESSAGES/bs-ng.mo
	fi
	if [ -f /usr/share/locale/de/LC_MESSAGES/nx-rc.mo ]; then
		rm $pkgdir/usr/share/locale/de/LC_MESSAGES/nx-rc.mo
	fi
	if [ -f /usr/share/locale/es/LC_MESSAGES/bs-ng.mo ]; then
		rm $pkgdir/usr/share/locale/es/LC_MESSAGES/bs-ng.mo
	fi
	if [ -f /usr/share/locale/es/LC_MESSAGES/nx-rc.mo ]; then
		rm $pkgdir/usr/share/locale/es/LC_MESSAGES/nx-rc.mo
	fi
	if [ -f /usr/share/locale/it/LC_MESSAGES/bs-ng.mo ]; then
		rm $pkgdir/usr/share/locale/it/LC_MESSAGES/bs-ng.mo
	fi
	#if [ -f /usr/share/locale/ru/LC_MESSAGES/bs-ng-wizard.mo ]; then
		#rm $pkgdir/usr/share/locale/ru/LC_MESSAGES/bs-ng-wizard.mo
	#fi
	#if [ -f /usr/share/locale/ru/LC_MESSAGES/bs-ng.mo ]; then
		#rm $pkgdir/usr/share/locale/ru/LC_MESSAGES/bs-ng.mo
	#fi
	#if [ -f /usr/share/locale/ru/LC_MESSAGES/nx-rc.mo ]; then
		#rm $pkgdir/usr/share/locale/ru/LC_MESSAGES/nx-rc.mo
	#fi

}