summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 990dddb839a182ed08cff86bc949910933e550f2 (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: Anatol Pomozov <anatol.pomozov@gmail.com>

pkgname=safe-iop
pkgver=0.3.1
pkgrel=1
pkgdesc='Provides a collection of (macro-based) functions for performing safe integer operations across platform and architecture with a straightforward API'
arch=(any)
license=(BSD)
url='https://code.google.com/p/safe-iop/'
source=(https://safe-iop.googlecode.com/files/safe-iop-$pkgver.tgz)
sha1sums=('1d401b94c04b958a5350e1079781bbfb00cb1a69')

prepare() {
  cd $pkgname-$pkgver 
  # sed -e 's/CFLAGS\W*=/CFLAGS += -fPIC /g' -i Makefile
}

build() {
  cd $pkgname-$pkgver
  # make so
}

package() {
  cd $pkgname-$pkgver
  # use header-only installation
  install -D -m644 include/safe_iop.h "$pkgdir/usr/include/safe_iop.h"
}