Add makedeb PKGBUILD for controller
This commit is contained in:
parent
481adfd966
commit
6b554d3516
2 changed files with 53 additions and 6 deletions
|
@ -4,16 +4,14 @@ pkgver=0.3.7
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
epoch=
|
epoch=
|
||||||
pkgdesc=""
|
pkgdesc=""
|
||||||
arch=('x86_64' 'armv6h' 'armv7h' 'aarch64')
|
arch=('amd64' 'armhf' 'armel' 'arm64')
|
||||||
url="https://git.serguzim.me/emgauwa/controller"
|
url="https://git.serguzim.me/emgauwa/controller"
|
||||||
license=('unknown')
|
license=('unknown')
|
||||||
groups=()
|
groups=()
|
||||||
depends=('glibc' 'lmdb')
|
depends=('libsqlite3-0' 'uuid' 'wiringpi')
|
||||||
depends_armv6h=('wiringpi')
|
makedepends=('make' 'cmake' 'gcc' 'xxd' 'libsqlite3-dev' 'uuid-dev' 'libwiringpi-dev')
|
||||||
depends_armv7h=('wiringpi')
|
|
||||||
makedepends=('make' 'cmake' 'gcc')
|
|
||||||
conflicts=('emgauwa-controller-testing')
|
conflicts=('emgauwa-controller-testing')
|
||||||
backup=('etc/emgauwa/controller.ini')
|
backup=('/etc/emgauwa/controller.ini')
|
||||||
source=("https://git.serguzim.me/emgauwa/controller/archive/v$pkgver.tar.gz"
|
source=("https://git.serguzim.me/emgauwa/controller/archive/v$pkgver.tar.gz"
|
||||||
"controller.ini"
|
"controller.ini"
|
||||||
"emgauwa-controller.service"
|
"emgauwa-controller.service"
|
||||||
|
|
49
controller/PKGBUILD.arch
Normal file
49
controller/PKGBUILD.arch
Normal file
|
@ -0,0 +1,49 @@
|
||||||
|
# Maintainer: Tobias Reisinger <tobias@msrg.cc>
|
||||||
|
pkgname=emgauwa-controller
|
||||||
|
pkgver=0.3.7
|
||||||
|
pkgrel=1
|
||||||
|
epoch=
|
||||||
|
pkgdesc=""
|
||||||
|
arch=('x86_64' 'armv6h' 'armv7h' 'aarch64')
|
||||||
|
url="https://git.serguzim.me/emgauwa/controller"
|
||||||
|
license=('unknown')
|
||||||
|
groups=()
|
||||||
|
depends=('glibc' 'lmdb')
|
||||||
|
depends_armv6h=('wiringpi')
|
||||||
|
depends_armv7h=('wiringpi')
|
||||||
|
makedepends=('make' 'cmake' 'gcc')
|
||||||
|
conflicts=('emgauwa-controller-testing')
|
||||||
|
backup=('etc/emgauwa/controller.ini')
|
||||||
|
source=("https://git.serguzim.me/emgauwa/controller/archive/v$pkgver.tar.gz"
|
||||||
|
"controller.ini"
|
||||||
|
"emgauwa-controller.service"
|
||||||
|
"emgauwa-controller.sysusers"
|
||||||
|
"emgauwa-controller.tmpfiles")
|
||||||
|
sha256sums=('569acded9108ebf0e8c8fc5dcd0b27e8872d63b5cdf07b3e960f97bd996e8827'
|
||||||
|
'7d886240280705c26d64dcda6eafd372e8f8e4a17cc85502d788e9195ad8418f'
|
||||||
|
'8ece4b409d5550cdae23591217e440d8599ebf2175f2a91574c0b069314879a0'
|
||||||
|
'b9cde58b9e9b0605ca4a1eddd78067c55aa3c8d40f80cde0a25c4da9f6f95798'
|
||||||
|
'e62f47b41f0c4f116007ca0e05e0a50b45446763ccfa91b946b9d451c83ff5b4')
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
cd "controller"
|
||||||
|
mkdir -p "build"
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd "controller/build" || exit 1
|
||||||
|
cmake ..
|
||||||
|
make
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
install -Dm755 "controller/build/controller" "${pkgdir}/usr/bin/emgauwa-controller"
|
||||||
|
|
||||||
|
install -Dm660 "controller.ini" "${pkgdir}/etc/emgauwa/controller.ini"
|
||||||
|
install -Dm644 "${pkgname}.service" "${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
|
||||||
|
install -Dm644 "${pkgname}.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/${pkgname}.conf"
|
||||||
|
install -Dm644 "${pkgname}.sysusers" "${pkgdir}/usr/lib/sysusers.d/${pkgname}.conf"
|
||||||
|
|
||||||
|
install -Ddm750 "${pkgdir}/var/lib/emgauwa"
|
||||||
|
install -Ddm750 "${pkgdir}/var/lib/emgauwa/controller"
|
||||||
|
}
|
Reference in a new issue