Mercurial > vanilla
comparison core/consolekit2/consolekit2.sh @ 1222:325631424c65
misc: bring back build function
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 27 Oct 2021 11:32:16 +0200 |
parents | a47aaf9743a0 |
children | 9867e578b1a9 |
comparison
equal
deleted
inserted
replaced
1221:a47aaf9743a0 | 1222:325631424c65 |
---|---|
60 with_udev="--enable-libudev" | 60 with_udev="--enable-libudev" |
61 else | 61 else |
62 with_udev="--disable-libudev" | 62 with_udev="--disable-libudev" |
63 fi | 63 fi |
64 | 64 |
65 rm -rf ConsoleKit2-$PKGVERSION | 65 build() |
66 tar xvf ConsoleKit2-$PKGVERSION.tar.bz2 | 66 { |
67 cd ConsoleKit2-$PKGVERSION | 67 rm -rf ConsoleKit2-$PKGVERSION |
68 tar xvf ConsoleKit2-$PKGVERSION.tar.bz2 | |
69 cd ConsoleKit2-$PKGVERSION | |
68 | 70 |
69 CC="$CC" \ | 71 CC="$CC" \ |
70 CFLAGS="$CFLAGS" \ | 72 CFLAGS="$CFLAGS" \ |
71 LDFLAGS="$LDFLAGS" \ | 73 LDFLAGS="$LDFLAGS" \ |
72 LIBS="$LIBS" \ | 74 LIBS="$LIBS" \ |
73 ./configure \ | 75 ./configure \ |
74 --build=$CBUILD \ | 76 --build=$CBUILD \ |
75 --host=$CHOST \ | 77 --host=$CHOST \ |
76 --prefix=/usr \ | 78 --prefix= \ |
77 --sysconfdir=/etc \ | 79 --sysconfdir=/etc \ |
78 --localstatedir=/var \ | 80 --localstatedir=/var \ |
79 --with-pid-file=/var/run/consolekit2.pid \ | 81 --with-pid-file=/var/run/consolekit2.pid \ |
80 --sbindir=/bin \ | 82 --sbindir=/bin \ |
81 $with_pam \ | 83 $with_pam \ |
82 $with_polkit \ | 84 $with_polkit \ |
83 $with_selinux \ | 85 $with_selinux \ |
84 $with_udev | 86 $with_udev |
85 make | 87 make |
86 make install DESTDIR=$DESTDIR | 88 make install DESTDIR=$DESTDIR |
87 find $DESTDIR -type f -name "*.la" -delete | 89 find $DESTDIR -type f -name "*.la" -delete |
88 | 90 |
89 cd .. | 91 cd .. |
90 rm -rf ConsoleKit2-$PKGVERSION | 92 rm -rf ConsoleKit2-$PKGVERSION |
93 } |