summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: db83c4890f2a10d005b6be0d15bcf0fc16fc6f31 (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
pkgname=wire
pkgver=2.5.2
pkgrel=1
pkgdesc="UNIX server for the Wired 2.0 protocol"
arch=('any')
url="https://github.com/nark/${pkgname}d"
license=('custom:BSD-2-clause')
source=("git+${url}.git?#tag=${pkgver}")
depends=(openssl readline ncurses libxml2)
makedepends=(git)
sha512sums=('SKIP')

prepare() {
  cd "${pkgname}d"
  git submodule init && git submodule update
  libwired/bootstrap
}

build() {
  cd "${pkgname}d"
  ./configure --prefix=${pkgdir}/usr
  make
}

package() {
  cd "${pkgname}d"
  make install DESTDIR="${pkgdir}"
  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}