summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a307e645d70accf1113cd632246ffe5f423a5926 (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
# Maintainer: Alexander Kuntsch <alex.kuntsch plus aur at mailbox dot org>
# Contributor: Timofey Titovets <nefelim4ag@gmail.com>

pkgname=rrcc
pkgver=0.8.8
pkgrel=1
pkgdesc="RoboRock Control Center for Xiaomi vacuum cleaners"
arch=('x86_64')
url="https://github.com/LazyT/rrcc"
license=('GPL3')
depends=('libssh'
         'libarchive'
         'qt5-websockets')
source=("$pkgname-$pkgver.tar.gz"::"https://github.com/LazyT/rrcc/archive/$pkgver.tar.gz"
        "$pkgname.desktop")
md5sums=('130d10a9c5f9ee63e2793d9cc3189bb5'
         '35473fc49be43e11dab4fa8b1760dab8')

prepare() {
    cd "$srcdir/$pkgname-$pkgver"
    # Don't pass source directory to linker as relative path
    sed -i '/QMAKE_LFLAGS.*rpath/d' "$pkgname.pro"
}

build() {
    cd "$srcdir/$pkgname-$pkgver"
    qmake
    make
}

package() {
    cd "$srcdir/$pkgname-$pkgver"
    install -Dm755 rrcc "$pkgdir/usr/bin/rrcc"
    install -Dm644 res/ico/app.png "$pkgdir/usr/share/pixmaps/$pkgname.png"
    install -Dm644 "$srcdir/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
}