blob: cc28cf7afcf114bfd483777f2c893e543790efae (
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.7.2.r4.g79693f4
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=('python' 'dmidecode' 'gawk' 'sed' 'bc' 'gettext' 'less' 'libnewt' 'python-configobj' 'python-gobject')
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
}
|