blob: 98cd7864f74b12d2b1856d7b2330bd337c00d158 (
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
44
45
46
47
48
49
50
51
|
# Maintainer: X0rg
# Contributor: Nicolas QuiƩnot < niQo at aur >
_realname=libkqueue
pkgname=lib32-$_realname
pkgver=2.0.4
pkgrel=2
pkgdesc="Userspace implementation of the kqueue kernel event notification mechanism found in FreeBSD and other BSD-based (32-bit)"
url="https://github.com/mheily/libkqueue"
arch=('x86_64')
license=('BSD')
depends=('lib32-glibc' 'libkqueue')
makedepends=('gcc-multilib')
options=('!libtool')
source=("https://github.com/mheily/$_realname/archive/v$pkgver.tar.gz")
md5sums=('fb708a9183b8793e0b2b2252818df144')
build() {
cd "$srcdir/$_realname-$pkgver"
export CC="gcc -m32"
export CXX="g++ -m32"
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
if [[ ! -f ./configure ]]; then
msg2 "Run 'libtoolize'..."
libtoolize
msg2 "Run 'autoreconf --install'..."
autoreconf --install
fi
msg2 "Run 'configure'..."
./configure --prefix=/usr --libdir=/usr/lib32 --disable-static
msg2 "Run 'make'..."
make
msg2 "Extract license..."
sed -n '/Copyright/,/ OF THIS SOFTWARE./p' "./src/common/kqueue.c" | cut -c 4- > "LICENSE"
}
package() {
cd "$srcdir/$_realname-$pkgver"
make DESTDIR="$pkgdir" install
msg2 "Install license..."
install -Dvm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
# Clean up lib32 package
rm -rf "$pkgdir/usr/include" "$pkgdir/usr/share/man"
}
|