summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4984056b756d5bd887f1097518ccdba7586456e5 (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
# Maintainer: Rox Ma <roxma@qq.com>
# Contributor: Lukas Fleischer <lfleischer@archlinux.org>
# Contributor: Dan Serban
# Contributor: Ross Melin <rdmelin@gmail.com>

pkgname=lib32-libfaketime
pkgver=0.9.8
pkgrel=1
pkgdesc='Report fake dates and times to programs without having to change the system-wide time.'
arch=('x86_64')
url='https://github.com/wolfcw/libfaketime'
license=('GPL2')
source=("https://github.com/wolfcw/libfaketime/archive/v$pkgver.tar.gz")
md5sums=('9ad120f0d74d722d83570035b6a507f0')

build() {
  cd "libfaketime-${pkgver}"
  make PREFIX=/usr LIBDIRNAME=/lib32/faketime CC="gcc -m32" CXX="g++ -m32"
}

package() {
  cd "libfaketime-${pkgver}"
  # We don't need to install documentation and binary executable
  # make PREFIX=/usr LIBDIRNAME=/lib32/faketime DESTDIR="${pkgdir}" install
  install -dm0755 ${pkgdir}/usr/lib32/faketime
  install src/libfaketime.so.1 src/libfaketimeMT.so.1 ${pkgdir}/usr/lib32/faketime/
}