aboutsummarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 94605186743426d03560ed69177246cc48e199a4 (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: Elijah Lynn <elijah@elijahlynn.net>
pkgname=ultraworking-headquarters-bin
pkgver=0.27.1
pkgrel=1
pkgdesc="Ultraworking Headquarters app"
arch=('x86_64')
url="https://www.ultraworking.com"
# TODO depends()
depends=()
optdepends=()
license=('custom')
makedepends=('curl')
options=('!strip' '!emptydirs')
# This file is download to the git root directory and symlinked to a relative ./src/ directory.
source=("https://github.com/Ultraworking/headquarters/releases/download/v${pkgver}/headquarters_${pkgver}_amd64.deb")
sha512sums=('533fafc5fa348f71c6193274966bd4458c87744a78ef347390ae9980119b570a920af7af59716804eb86bb3b9b7cb7f7a45cd3ec57189d64705fd7512c08ecf1')

# pkgdir = /home/elijah/Projects/aur-ultraworking-headquarters-bin/pkg/ultraworking-headquarters-bin
# CWD = /home/elijah/Projects/aur-ultraworking-headquarters-bin/src

# This stage will show as "Starting package()..." when running "makepkg --install --syncdeps"
package(){
  mkdir --parents "${pkgdir}/opt/${pkgname}"
  # The curl download of the *.deb is copied to ./src/data/tar.xz for this operation.
  tar --extract --file data.tar.xz
  cp -r usr/lib/headquarters/* "${pkgdir}/opt/${pkgname}"
  install --directory --mode=755 "${pkgdir}"/usr/bin
  # This symlink is not actually created at root at this point, but is just pointed there so when it is installed it works.
  ln -s /opt/"$pkgname"/Headquarters "$pkgdir/usr/bin/headquarters"
  install -D --mode=644 "usr/share/applications/headquarters.desktop" "${pkgdir}/usr/share/applications/headquarters.desktop"
  install -D --mode=644 "usr/share/pixmaps/headquarters.png" "${pkgdir}/usr/share/pixmaps/headquarters.png"
}