summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ddc40087d8b677799a515155972d789b99a2242c (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
43
# Contributor: Antoine Viallon <antoine at lesviallon dot fr>
# Contributor: Jakob Gahde <j5lx@fmail.co.uk>
# Contributor: Taylor Lookabaugh <jesus.christ.i.love@gmail.com>
# Contributor: Jon Sturm <jasturm002@aol.com>
# Contributor: Scott Garrett <Wintervenom@archlinux.us>

_name=tilibs
pkgname=libtifiles-git
pkgver=1.18.r119.g7c4858d8
pkgrel=1
pkgdesc="TI File format library"
arch=('i686' 'x86_64')
url="http://lpg.ticalc.org/prj_tilp/"
license=('GPL-2.0-only')
depends=('glibc' 'glib2' 'gcc-libs' 'libarchive' 'libticonv-git')
makedepends=('git')
options=('!libtool')
conflicts=('libtifiles')
provides=('libtifiles')
source=(${_name}::git+https://github.com/debrouxl/tilibs.git)
md5sums=('SKIP')


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

prepare() {
  cd ${_name}/${pkgname%-*}/trunk
  autoreconf -fi
}

build() {
  cd ${_name}/${pkgname%-*}/trunk
  ./configure --prefix=/usr
  make
}

package() {
  cd ${_name}/${pkgname%-*}/trunk
  make install DESTDIR="${pkgdir}"
}