summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6afe1d8fe7b38e5c83ef0ed18b41518f3174b747 (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
# Maintainer: aksr <aksr at t-com dot me>
pkgname=fontview-git
pkgver=r211.ed212ae
pkgrel=1
epoch=
pkgdesc="A simple font viewer."
arch=('i686' 'x86_64')
url="https://github.com/khaledhosny/fontview"
license=('GPLv2')
groups=()
depends=('gtk3' 'cairo' 'freetype2' 'harfbuzz' 'intltool')
makedepends=('git' 'meson')
optdepends=()
checkdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
changelog=
install=
source=("$pkgname::git://github.com/khaledhosny/fontview.git")
noextract=()
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$srcdir/$pkgname"
  meson --prefix /usr . build
  ninja -C build
}

package() {
  cd "$srcdir/$pkgname"
  DESTDIR=$pkgdir ninja -C build install
  install -Dm644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING
}