forked from msys2/MSYS2-packages
-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathPKGBUILD
More file actions
71 lines (61 loc) · 2.02 KB
/
Copy pathPKGBUILD
File metadata and controls
71 lines (61 loc) · 2.02 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# Maintainer: Alexey Pavlov <alexpux@gmail.com>
pkgbase=gamin
pkgname=("gamin" "gamin-devel" "gamin-python")
pkgver=0.1.10
pkgrel=3
pkgdesc="File and directory monitoring system defined to be a subset of the FAM (File Alteration Monitor)"
arch=('i686' 'x86_64')
url="https://people.gnome.org/~veillard/gamin/"
license=('LGPL')
groups=('libraries')
makedepends=('gcc' 'gtk-doc' 'glib2-devel' 'pcre-devel' 'python2')
source=("https://download.gnome.org/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.bz2"
001-no-undefined.patch
002-fix-deprecated-const.patch
003-python-link.patch)
sha256sums=('a59948b20ce2f14136c013f155abb8c8d51db2ea167c063ff33461e453fec10a'
'ab3d63b9ec568fbfe597216135b1e210b92299da0d2556be70fa7c01b3600e06'
'33af6c9a94b459506fc48892c169d89cb4ad7c68e160f0c4bc74475f19ce5a2f'
'1f11906d4d4dc5159ca647167899ccfb5efec4648ea77b6e96397142293bbab7')
prepare() {
cd "$srcdir/$pkgname-$pkgver"
patch -p1 -i ${srcdir}/001-no-undefined.patch
patch -p1 -i ${srcdir}/002-fix-deprecated-const.patch
patch -p1 -i ${srcdir}/003-python-link.patch
autoreconf -ivf
}
build() {
cd "$srcdir/$pkgname-$pkgver"
./configure \
--prefix=/usr \
--libexecdir=/usr/lib/gamin \
--disable-server \
--with-python=/usr/bin/python2
make
make DESTDIR="$srcdir/dest" install
}
check() {
cd "$srcdir/$pkgname-$pkgver"
make -k check
}
package_gamin() {
mkdir -p $pkgdir/usr/bin
cp -rf $srcdir/dest/usr/bin $pkgdir/usr/
}
package_gamin-devel() {
pkgdesc="Gamin headers and libraries (development)"
groups=('development')
depends=("gamin=${pkgver}")
mkdir -p $pkgdir/usr
cp -rf $srcdir/dest/usr/include $pkgdir/usr/
mkdir -p $pkgdir/usr/lib
cp -rf $srcdir/dest/usr/lib/pkgconfig $pkgdir/usr/lib/
cp -f $srcdir/dest/usr/lib/*.a $pkgdir/usr/lib/
}
package_gamin-python() {
pkgdesc="Gamin python modules"
depends=("gamin=${pkgver}" "python2")
groups=('python-modules')
mkdir -p $pkgdir/usr/lib
cp -rf $srcdir/dest/usr/lib/python* $pkgdir/usr/lib/
}