blob: 926d13f960971498860bd1213f9a190edf427c38 (
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
|
# Maintainer Severin Glöckner <severin.gloeckner@stud.htwk-leipzig.de>
pkgname=mx-bash-config-git
pkgver=19.10.09_110
pkgrel=1
pkgdesc="GUI tool written in Qt to modify the bashrc "
arch=('x86_64')
url="https://mxlinux.org/wiki/help-files/help-bash-config"
license=('GPL3')
depends=('qt5-base')
install=bash-config.install
source=("git+https://github.com/TheNiteCoder/mx-bashrc-config"
"https://raw.githubusercontent.com/MX-Linux/mx-goodies/master/bin/fancy-prompts.bash")
md5sums=('SKIP'
'90de09da55a2ede5f18ab06678a4c76c')
pkgver() {
cd "$srcdir"/mx-bashrc-config/application/debian
# official number from changelog + number of commits as suffix
last_release=$(head -n 1 changelog | cut -f 2 -d "(" | cut -f 1 -d ")" )
echo -n "${last_release}_" && git rev-list master --count
}
prepare() {
cd "$srcdir"/mx-bashrc-config/application
# change file location
sed -i 's;/usr/local/bin/fancy-prompts.bash;/usr/share/bash-config/fancy-prompts.bash;' *.*
qmake -config release QMAKE_CXXFLAGS_RELEASE+="${CXXFLAGS} ${CPPFLAGS}"
}
build() {
cd "$srcdir"/mx-bashrc-config/application
make
}
package() {
# qmake install is not used, copying files mnaually
cd "$srcdir"/mx-bashrc-config/application
# rm translations/*.qm
install -Dm755 bash-config -t "$pkgdir"/usr/bin/
install -Dm644 bashrc-config.desktop -t "$pkgdir"/usr/share/applications/
mkdir -p "$pkgdir"/usr/share/doc/bash-config/help
cp -r help/* "$pkgdir"/usr/share/doc/bash-config/help
install -Dm644 "$srcdir"/fancy-prompts.bash -t "$pkgdir"/usr/share/bash-config/
}
|