blob: 3c8ddf23e372e59778afd256e0a8011d55f4c33e (
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
|
# Maintainer: Christian Hesse <mail@eworm.de>
pkgname=libmnl-git
pkgver=1.0.3.r11.g050d592
pkgrel=1
pkgdesc='Library for minimalistic netlink - git checkout'
arch=('i686' 'x86_64')
url='http://www.netfilter.org/projects/libmnl/'
license=('GPL')
makedepends=('git')
provides=('libmnl')
conflicts=('libmnl')
source=('git://git.netfilter.org/libmnl.git')
sha256sums=('SKIP')
pkgver() {
cd libmnl/
if GITTAG="$(git describe --abbrev=0 --tags 2>/dev/null)"; then
echo "$(sed -e "s/^${pkgname%%-git}//" -e 's/^[-_/a-zA-Z]\+//' -e 's/[-_+]/./g' <<< ${GITTAG}).r$(git rev-list --count ${GITTAG}..).g$(git log -1 --format="%h")"
else
echo "0.r$(git rev-list --count master).g$(git log -1 --format="%h")"
fi
}
build() {
cd libmnl/
sh autogen.sh
./configure --prefix=/usr
make
}
package() {
cd libmnl/
make DESTDIR="${pkgdir}" install
}
|