summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 73a4652689fa7cbfda26eab307d0add64dd990e4 (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
# Maintainer: Tony Fettes <feihaoxiang2014@gmail.com>
# Contributor: Elrondo46 (https://github.com/Elrondo46)
# Contributor: kounch (https://github.com/kounch)

pkgname=argonone-git
_gitname=argonone
pkgver=r25.ff51561
pkgrel=1
pkgdesc="Argon One Service and Control Scripts por Raspberry Pi"
arch=('any')
url='https://download.argon40.com/argon1.sh'
license=('GPL3')
makedepends=('git')
depends=('i2c-tools' 'lm_sensors' 'python>=3.3' 'raspberrypi-userland-aarch64-git')
provides=('argonone')
backup=('etc/argononed.conf')
install=argonone.install
source=("git+https://github.com/kounch/argonone.git#branch=feature/RaspberryPi4")
sha256sums=('SKIP')

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

package() {
  install -Dm755 "${srcdir}"/"${_gitname}"/argonone-config "${pkgdir}"/usr/bin/argonone-config
  install -Dm755 "${srcdir}"/"${_gitname}"/argononed-poweroff.py "${pkgdir}"/usr/lib/systemd/system-shutdown/argononed-poweroff.py
  install -Dm644 "${srcdir}"/"${_gitname}"/argononed.conf "${pkgdir}"/etc/argononed.conf
  install -Dm755 "${srcdir}"/"${_gitname}"/argononed.py "${pkgdir}"/opt/argonone/bin/argononed.py
  install -Dm644 "${srcdir}"/"${_gitname}"/argononed.service "${pkgdir}"/usr/lib/systemd/system/argononed.service
}