comparison x11/xdm/xdm.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
52 with_selinux="--with-selinux" 52 with_selinux="--with-selinux"
53 else 53 else
54 with_selinux="--without-selinux" 54 with_selinux="--without-selinux"
55 fi 55 fi
56 56
57 rm -rf $PKGNAME-$PKGVERSION 57 build()
58 tar xvf $PKGNAME-$PKGVERSION.tar.gz 58 {
59 cd $PKGNAME-$PKGVERSION 59 rm -rf $PKGNAME-$PKGVERSION
60 tar xvf $PKGNAME-$PKGVERSION.tar.gz
61 cd $PKGNAME-$PKGVERSION
60 62
61 CC="$CC" \ 63 CC="$CC" \
62 CFLAGS="$CFLAGS" \ 64 CFLAGS="$CFLAGS" \
63 LDFLAGS="$LDFLAGS" \ 65 LDFLAGS="$LDFLAGS" \
64 LIBS="$LIBS" \ 66 LIBS="$LIBS" \
65 ./configure \ 67 ./configure \
66 --build=$CBUILD \ 68 --build=$CBUILD \
67 --host=$CHOST \ 69 --host=$CHOST \
68 --prefix=/usr \ 70 --prefix= \
69 --without-systemd-daemon \ 71 --without-systemd-daemon \
70 $with_pam \ 72 $with_pam \
71 $with_selinux 73 $with_selinux
72 make 74 make
73 make install DESTDIR=$DESTDIR 75 make install DESTDIR=$DESTDIR
74 find $DESTDIR -type f -name "*.la" -delete 76 find $DESTDIR -type f -name "*.la" -delete
75 77
76 cd .. 78 cd ..
77 rm -rf $PKGNAME-$PKGVERSION 79 rm -rf $PKGNAME-$PKGVERSION
80 }