summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7a90fe91214fec225d9dded21f410bcd5ff56a67 (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: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=libaio-git
pkgver=0.3.113.r0.g1b18bfa
pkgrel=1
pkgdesc="The Linux-native asynchronous I/O facility (aio) library"
arch=('i686' 'x86_64')
url="https://pagure.io/libaio"
license=('LGPL')
depends=('glibc')
makedepends=('git')
provides=("libaio=$pkgver" "libaio.so")
conflicts=('libaio')
options=('staticlibs')
source=("git+https://pagure.io/libaio.git")
sha256sums=('SKIP')


pkgver() {
  cd "libaio"

  git describe --long --tags | sed 's/^libaio.//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "libaio"

  make
}

check() {
  cd "libaio"

  #make partcheck
}

package() {
  cd "libaio"

  make DESTDIR="$pkgdir" install
  install -Dm644 {ChangeLog,README.md} -t "$pkgdir/usr/share/doc/libaio"
  install -Dm644 man/*.3 -t "$pkgdir/usr/share/man/man3"
}