summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fc46a20af18dbb6c3150468157f4e6a648acdb52 (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: Darshit Shah <darnir [at] gnu [dot] org>

_pkgname=libtextstyle
pkgname=$_pkgname-git
pkgver=v0.20.1.r166.g3251d1ea0
pkgrel=1
pkgdesc='Text Styling Library (Only libtextstyle)'
url='https://www.gnu.org/software/gettext/'
arch=('x86_64')
license=('GPL3')
depends=()
makedepends=('git' 'wget')
source=(git+https://git.savannah.gnu.org/git/gettext.git)
sha512sums=('SKIP')

pkgver() {
  cd gettext
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
  cd gettext
  ./gitsub.sh upgrade
  ./gitsub.sh pull
  cd ${_pkgname}
  GNULIB_SRCDIR=../gnulib ./autogen.sh
}

build() {
  cd gettext/${_pkgname}/
  ./configure \
    --prefix=/opt/${_pkgname}
  make
}

package() {
  cd gettext/${_pkgname}
  make DESTDIR="${pkgdir}" install
  install -Dm 644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
}

# vim: ts=2 sw=2 et: