summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0e18c6d205294f855556dd6c0d94d41634d9dd51 (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
pkgname=cloudshell-lcd
_pkgname=cloudshell_lcd
pkgver=r21.1fd2a58
pkgrel=1
pkgdesc="LCD screen for odroid xu4"
arch=('armv7h')
conflicts=()
provides=()
url='https://github.com/MrKyr/cloudshell_lcd.git'
license=('GPLv3')
depends=('bc' 'curl' 'sysstat' 'procps-ng')
makedepends=('git')
source=('git+https://github.com/MrKyr/cloudshell_lcd.git')
sha256sums=('SKIP')

pkgver() {
    cd "${srcdir}/${_pkgname}"

    # Get the version number.
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
    cd "${srcdir}/${_pkgname}"
    install -Dm755 cloudshell ${pkgdir}/usr/bin/cloudshell
    install -Dm644 cloudshell.service ${pkgdir}/usr/lib/systemd/system/cloudshell.service
}