summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7f08b00a437e28bd4cff8d69e97424fc67e9b607 (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
# Maintainer: Jaryl Chng <mrciku@gmail.com>
pkgname=libewf-git
pkgver=20161109.11a3f476
pkgrel=1
pkgdesc='Library to access the Expert Witness Compression Format (EWF)'
arch=('any')
url='https://github.com/libyal/libewf'
license=('LGPL')
provides=('libewf-git')
conflicts=('libewf')
groups=()
depends=()
makedepends=('git' 'pkg-config')
optdepends=()
options=()
source=('git+https://github.com/libyal/libewf.git')
sha1sums=('SKIP')

_gitname="libewf"

pkgver() {
  cd "$srcdir/$_gitname"
  git log -1 --format='%cd.%h' --date=short | tr -d -
}

build() {
  cd "$_gitname"

  ./synclibs.sh
  sed -i '/ewftools/d' Makefile.am
  sed -i '/ewftools/d' configure.ac
  ./autogen.sh
  ./configure \
    --prefix=/usr \
    --sysconfdir=/etc

  make
}

package() {
  cd "$_gitname"
  make DESTDIR="$pkgdir/" install
}