summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c1d8671e2cdfd6df27f5a63624553de93ddd6f6b (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
# Maintainer: Mario Blättermann <mario.blaettermann@gmail.com>

pkgname=man-pages-ro-git
_gitname=manpages-l10n
pkgver=r17815.7dd9c5f30e
pkgrel=1
pkgdesc="Romanian man pages (Git version)"
arch=('any')
url="https://salsa.debian.org/manpages-l10n-team/manpages-l10n"
license=('GPL3')
conflicts=('man-pages-ro')
depends=('man')
makedepends=('po4a' 'git')
options=('!emptydirs')
source=("${_gitname}::git+https://salsa.debian.org/manpages-l10n-team/manpages-l10n.git")
sha512sums=('SKIP')

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

build() {
  cd "${srcdir}"/manpages-l10n
  ./configure --prefix=/usr --enable-distribution=archlinux
  
  cd po/ro
  make
}

package() {
  cd "${srcdir}"/manpages-l10n/po/ro

  make DESTDIR="${pkgdir}" install
}