comparison xfce/xfce4-power-manager/xfce4-power-manager.sh @ 1216:6710613b88b9

misc: remove build function
author David Demelier <markand@malikania.fr>
date Wed, 29 Sep 2021 13:49:32 +0200
parents 297b5eef115e
children 57dc83a39b13
comparison
equal deleted inserted replaced
1215:3214f7fed454 1216:6710613b88b9
64 with_xfce="--enable-xfce4panel --enable-panel-plugins" 64 with_xfce="--enable-xfce4panel --enable-panel-plugins"
65 else 65 else
66 with_xfce="--disable-xfce4panel --disable-panel-plugins" 66 with_xfce="--disable-xfce4panel --disable-panel-plugins"
67 fi 67 fi
68 68
69 build() 69 rm -rf $PKGNAME-$PKGVERSION
70 { 70 tar xvf $PKGNAME-$PKGVERSION.tar.bz2
71 rm -rf $PKGNAME-$PKGVERSION 71 cd $PKGNAME-$PKGVERSION
72 tar xvf $PKGNAME-$PKGVERSION.tar.bz2
73 cd $PKGNAME-$PKGVERSION
74 72
75 CC="$CC" \ 73 CC="$CC" \
76 CFLAGS="$CFLAGS" \ 74 CFLAGS="$CFLAGS" \
77 LDFLAGS="$LDFLAGS" \ 75 LDFLAGS="$LDFLAGS" \
78 LIBS="$LIBS" \ 76 LIBS="$LIBS" \
79 ./configure \ 77 ./configure \
80 --build=$CBUILD \ 78 --build=$CBUILD \
81 --host=$CHOST \ 79 --host=$CHOST \
82 --prefix= \ 80 --prefix= \
83 --sbindir=/bin \ 81 --sbindir=/bin \
84 --localedir=/share/locale \ 82 --localedir=/share/locale \
85 --with-locales-dir=/share/locale \ 83 --with-locales-dir=/share/locale \
86 $with_nls \ 84 $with_nls \
87 $with_polkit \ 85 $with_polkit \
88 $with_xfce 86 $with_xfce
89 make 87 make
90 make install DESTDIR=$DESTDIR 88 make install DESTDIR=$DESTDIR
91 find $DESTDIR -type f -name "*.la" -delete 89 find $DESTDIR -type f -name "*.la" -delete
92 90
93 cd .. 91 cd ..
94 rm -rf $PKGNAME-$PKGVERSION 92 rm -rf $PKGNAME-$PKGVERSION
95 }