File tree 1 file changed +4
-8
lines changed
1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -16,22 +16,18 @@ source=(git+https://github.com/rafalfr/smarttrafficmeter.git)
16
16
md5sums=(' SKIP' )
17
17
18
18
pkgver () {
19
- cd $pkgname
19
+ cd ${ pkgname% - * }
20
20
( set -o pipefail
21
21
git describe --long 2> /dev/null | sed ' s/\([^-]*-g\)/r\1/;s/-/./g' ||
22
22
printf " r%s.%s" " $( git rev-list --count HEAD) " " $( git rev-parse --short HEAD) "
23
23
)
24
24
}
25
-
26
- prepare () {
27
- mkdir -p build
28
- }
29
25
30
26
build () {
31
- cd $pkgname
27
+ cd ${ pkgname% - * }
32
28
cmake -H. -Bbuild
33
29
cmake --build build
34
- }
30
+ }
35
31
36
32
package () {
37
33
install -D -m755 ${srcdir} /smarttrafficmeter/bin/release/smarttrafficmeter ${pkgdir} /usr/bin/smarttrafficmeter
@@ -40,4 +36,4 @@ package() {
40
36
install -D -m755 ${srcdir} /smarttrafficmeter/install/desktop/smarttrafficmeter.desktop ${pkgdir} /usr/share/applications/smarttrafficmeter.desktop
41
37
install -D -m755 ${srcdir} /smarttrafficmeter/install/desktop/smarttrafficmeter.png ${pkgdir} /usr/share/pixmaps/smarttrafficmeter.png
42
38
install -D -m755 ${srcdir} /smarttrafficmeter/install/desktop/smarttrafficmeter.appdata.xml ${pkgdir} /usr/share/appdata/smarttrafficmeter.appdata.xml
43
- }
39
+ }
You can’t perform that action at this time.
0 commit comments