blob: e2f9920a157c91ff5e1769896d963b6043430c28 (
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
37
38
39
40
41
42
43
44
45
46
|
# Maintainer: Norbert <sandwich@archworks.co>
pkgname=semaphore-bin
pkgver=2.10.43
pkgrel=1
pkgdesc="Modern UI for Ansible (Binary Release)"
arch=('x86_64' 'aarch64')
url="https://www.ansible-semaphore.com/"
license=('MIT')
depends=('ansible-core')
optdepends=(
'ansible: Full Ansible assortment'
'postgresql: PostgreSQL database support'
'mariadb: MariaDB database support'
'postfix: Mail server support'
)
install=semaphore.install
source_x86_64=(
"semaphore_${pkgver}_linux_amd64.tar.gz::https://github.com/ansible-semaphore/semaphore/releases/download/v${pkgver}/semaphore_${pkgver}_linux_amd64.tar.gz"
"semaphore.service"
"semaphore.sysusers.d"
)
source_aarch64=(
"https://github.com/ansible-semaphore/semaphore/releases/download/v${pkgver}/semaphore_${pkgver}_linux_arm64.tar.gz"
"semaphore.service"
"semaphore.sysusers.d"
)
sha256sums_x86_64=('6b93db914afb6e2328abf8d8112fe1b4f724ac01c6dcd2d8295c8c6730c87fbc'
'712c2b4c8db3c909f0dce687e138e7d53737308a79183d5d9fd05f4dc5792dd9'
'fb2699dfd2c5873ae5ffb340bb38d88ea7ab39034f338ba2915e8e91320e9945')
sha256sums_aarch64=('1cf9694f87e2e2cf4cf26891e9ea46f4119a1a005e8f5e15bbe0679b6425f991'
'712c2b4c8db3c909f0dce687e138e7d53737308a79183d5d9fd05f4dc5792dd9'
'fb2699dfd2c5873ae5ffb340bb38d88ea7ab39034f338ba2915e8e91320e9945')
package() {
# Move the semaphore binary '/usr/lib'
mkdir -p "$pkgdir/usr/bin/"
cp -r "semaphore" "$pkgdir/usr/bin/"
# Install User and Service
install -Dm644 "semaphore.service" -t "${pkgdir}/usr/lib/systemd/system"
install -Dm644 "semaphore.sysusers.d" "${pkgdir}/usr/lib/sysusers.d/semaphore.conf"
# Install the LICENSE file to /usr/share/licenses/$pkgname/
install -Dm644 "${srcdir}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|