summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0a91ba8f582ed1785f940ebcdc20b7b3fd2f646f (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
# shellcheck disable=SC2034 # unused var
# shellcheck disable=SC2154 # var referenced but not assigned
# shellcheck disable=SC2164 # cd might fail

# Maintainer: Štěpán Němec <stepnem@gmail.com>

pkgname=ubrowse
pkgver=1.10
pkgrel=1
pkgdesc='Unicode character browser for the terminal'
arch=(x86_64)
url="https://www.muppetlabs.com/~breadbox/software/$pkgname.html"
license=(MIT)
depends=(ncurses)
makedepends=(curl pkgconf python)
source=("http://www.muppetlabs.com/~breadbox/pub/software/$pkgname-$pkgver.tar.gz")
sha256sums=('3ee558758df45060a0ab8bddcb125776f341cd1db57baec57cd02fa87c7c0ab4')

build() {
  cd "$pkgname-$pkgver"
  make CFLAGS="$CPPFLAGS $CFLAGS $(pkg-config --cflags ncursesw)" \
       LDFLAGS="$LDFLAGS"
}

package() {
  cd "$pkgname-$pkgver"
  make PREFIX="$pkgdir"/usr install
  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
  install -Dm644 Changelog "$pkgdir"/usr/share/doc/"$pkgname"/Changelog
}