comparison irc/irssi/irssi.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
45 with_truecolor="--enable-true-color" 45 with_truecolor="--enable-true-color"
46 else 46 else
47 with_truecolor="--disable-true-color" 47 with_truecolor="--disable-true-color"
48 fi 48 fi
49 49
50 rm -rf $PKGNAME-$PKGVERSION 50 build()
51 tar xvf $PKGNAME-$PKGVERSION.tar.xz 51 {
52 cd $PKGNAME-$PKGVERSION 52 rm -rf $PKGNAME-$PKGVERSION
53 tar xvf $PKGNAME-$PKGVERSION.tar.xz
54 cd $PKGNAME-$PKGVERSION
53 55
54 CC="$CC" \ 56 CC="$CC" \
55 CFLAGS="$CFLAGS" \ 57 CFLAGS="$CFLAGS" \
56 LDFLAGS="$LDFLAGS" \ 58 LDFLAGS="$LDFLAGS" \
57 LIBS="$LIBS" \ 59 LIBS="$LIBS" \
58 ./configure \ 60 ./configure \
59 --build=$CBUILD \ 61 --build=$CBUILD \
60 --host=$CHOST \ 62 --host=$CHOST \
61 --prefix=/usr \ 63 --prefix= \
62 --enable-shared \ 64 --enable-shared \
63 $with_perl \ 65 $with_perl \
64 $with_truecolor 66 $with_truecolor
65 make 67 make
66 make install DESTDIR=$DESTDIR 68 make install DESTDIR=$DESTDIR
67 find $DESTDIR -type f -name "*.la" -delete 69 find $DESTDIR -type f -name "*.la" -delete
68 70
69 cd .. 71 cd ..
70 rm -rf $PKGNAME-$PKGVERSION 72 rm -rf $PKGNAME-$PKGVERSION
73 }