blob: 4d899ee51027c98983d520c2002edc2b54d1e4f9 (
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.22
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=('aae98fdec3dd8e7039fccd47e123273a3d665b6bd222a99b3dd079905dc79960'
'712c2b4c8db3c909f0dce687e138e7d53737308a79183d5d9fd05f4dc5792dd9'
'fb2699dfd2c5873ae5ffb340bb38d88ea7ab39034f338ba2915e8e91320e9945')
sha256sums_aarch64=('71d62c47a871a769876ac4e9c3c9009f16e80ea9c2b818ddd87a0999adfcfc13'
'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}"
}
|