summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cf3f6e58d7496c28eab8f189249ff98b9196a308 (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
# Maintainer: Vlad Glagolev <scm(at)vaygr(dot)net>

pkgname=tlsc
_zimk_pkgname=zimk
_zimk_commit=0def4fa
pkgver=2.0
pkgrel=1
pkgdesc="TLS connect daemon"
arch=('i686' 'x86_64')
license=('BSD')
depends=('openssl' 'poser' 'git')
makedepends=('pkgconf')
url="https://github.com/Zirias/tlsc"

source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz"
        "${_zimk_pkgname}::git+https://github.com/Zirias/${_zimk_pkgname}#commit=${_zimk_commit}")
sha256sums=('632be47ece732b0eae190f7e92e099c31655ccc46b60696aad7164a390be5247'
            'SKIP')

prepare() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  mv ../${_zimk_pkgname} .
}

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  make DESTDIR="${pkgdir}/" prefix="/usr"
}

package() {
  cd "${pkgname}-${pkgver}"

  make DESTDIR="${pkgdir}/" prefix="/usr" install

  install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
  install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
}