summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 78f3bcc857b4068fa3c4e0e44d7d7815504efb7c (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
# Maintainer: Chris Kitching <chriskitching@linux.com>

pkgname=tplink-smartplug-git
pkgver=r25.395c352
pkgrel=1
pkgdesc="A CLI for interacting with TP-Link HS100, HS110, and HS105 smartplugs"
license=("Apache")
url='https://github.com/softScheck/tplink-smartplug'
arch=("any")
depends=('python2')

source=(
    "$pkgname::git+https://github.com/softScheck/tplink-smartplug"
)
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/tplink-smartplug-git"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
    cd "${srcdir}/tplink-smartplug-git"
    install -Dt "${pkgdir}/usr/bin" "tplink_smartplug.py"
    install -Dt "${pkgdir}/usr/share/tplink-smartplug" "LICENSE" "README.md"
}