summaryrefslogtreecommitdiff
path: root/community/libfaketime/PKGBUILD
blob: 1ed0c439f1570a8663bb4dc2f8fc58eedc3c7468 (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
# $Id: PKGBUILD 62627 2012-01-22 21:34:26Z lfleischer $
# Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de>
# Contributor: Dan Serban
# Contributor: Ross Melin <rdmelin@gmail.com>

pkgname=libfaketime
pkgver=0.9.1
pkgrel=1
pkgdesc='Report fake dates and times to programs without having to change the system-wide time.'
arch=('i686' 'x86_64' 'mips64el')
url='http://www.code-wizards.com/projects/libfaketime/'
license=('GPL2')
source=("http://www.code-wizards.com/projects/${pkgname}/${pkgname}-${pkgver}.tar.gz"
        'libfaketime-0.9.1-fix-as-needed.patch'
        'libfaketime-0.9.1-fix-README-NEWS.patch')
md5sums=('ce3f996dfd5826b4ac62f1a7cc36ea27'
         '90873e4df35283463ef54b159c318686'
         'b1b641a8e2298aa1646982e3bde96117')

build() {
  cd "${pkgname}-${pkgver}"

  patch -p1 -i ../libfaketime-0.9.1-fix-as-needed.patch
  patch -p1 -i ../libfaketime-0.9.1-fix-README-NEWS.patch

  make
}

package() {
  cd "${pkgname}-${pkgver}"
  make PREFIX=/usr DESTDIR="${pkgdir}" install
}