summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8849bc67c45d01df32842d4857ce1ef572d2ca9f (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
# $Id: PKGBUILD 100295 2013-11-02 08:51:09Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=ustr-selinux
pkgver=1.0.4
pkgrel=4
pkgdesc="micro string API for C with patches to make it work with gcc>=5.1"
arch=(i686 x86_64)
url="http://www.and.org/ustr/"
license=('GPL')
groups=('selinux')
depends=('glibc')
conflicts=("${pkgname/-selinux}")
provides=("${pkgname/-selinux}=${pkgver}-${pkgrel}")
# http://www.and.org/ustr/$pkgver/ustr-$pkgver.tar.bz2 is no longer available
source=(http://pkgs.fedoraproject.org/repo/pkgs/ustr/ustr-$pkgver.tar.bz2/93147d9f0c9765d4cd0f04f7e44bdfce/ustr-$pkgver.tar.bz2
    0001-Fix-the-prototype-of-ustrp_utf8_valid.patch
    0002-Mark-inline-functions-as-static-to-fix-build-with-GC.patch)
md5sums=('93147d9f0c9765d4cd0f04f7e44bdfce'
         'd01d97898f4c3b33a87c06e602ca9409'
         '9e7830ea74ff2f24f9b029746e883f3e')

prepare() {
  cd "$srcdir/${pkgname/-selinux}-$pkgver"
  patch -Np1 -i ../0001-Fix-the-prototype-of-ustrp_utf8_valid.patch
  patch -Np1 -i ../0002-Mark-inline-functions-as-static-to-fix-build-with-GC.patch
}

build() {
  cd "$srcdir/${pkgname/-selinux}-$pkgver"
  make
}

package() {
  cd "$srcdir/${pkgname/-selinux}-$pkgver"
  make DESTDIR="$pkgdir" install
  mv $pkgdir/usr/share/doc/man $pkgdir/usr/share/
}