comparison terminals/xterm/xterm.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
37 with_ttf="--enable-freetype" 37 with_ttf="--enable-freetype"
38 else 38 else
39 with_ttf="--disable-freetype" 39 with_ttf="--disable-freetype"
40 fi 40 fi
41 41
42 rm -rf $PKGNAME-$PKGVERSION 42 build()
43 tar xvf $PKGNAME-$PKGVERSION.tgz 43 {
44 cd $PKGNAME-$PKGVERSION 44 rm -rf $PKGNAME-$PKGVERSION
45 tar xvf $PKGNAME-$PKGVERSION.tgz
46 cd $PKGNAME-$PKGVERSION
45 47
46 # https://git.alpinelinux.org/aports/tree/community/xterm/posix-ptys.patch 48 # https://git.alpinelinux.org/aports/tree/community/xterm/posix-ptys.patch
47 patch -p1 < ../posix-ptys.patch 49 patch -p1 < ../posix-ptys.patch
48 CC="$CC" \ 50 CC="$CC" \
49 CFLAGS="$CFLAGS" \ 51 CFLAGS="$CFLAGS" \
50 LDFLAGS="$LDFLAGS" \ 52 LDFLAGS="$LDFLAGS" \
51 LIBS="$LIBS" \ 53 LIBS="$LIBS" \
52 ./configure \ 54 ./configure \
53 --build=$CBUILD \ 55 --build=$CBUILD \
54 --host=$CHOST \ 56 --host=$CHOST \
55 --prefix=/usr \ 57 --prefix= \
56 --enable-luit \ 58 --enable-luit \
57 $with_ttf 59 $with_ttf
58 make 60 make
59 make install DESTDIR=$DESTDIR 61 make install DESTDIR=$DESTDIR
60 62
61 # Those are not installed from the Makefile even though pixmaps are, so 63 # Those are not installed from the Makefile even though pixmaps are, so
62 # install them anyway. 64 # install them anyway.
63 install -Dm0644 xterm.desktop $DESTDIR/share/applications/xterm.desktop 65 install -Dm0644 xterm.desktop $DESTDIR/share/applications/xterm.desktop
64 install -Dm0644 uxterm.desktop $DESTDIR/share/applications/uxterm.desktop 66 install -Dm0644 uxterm.desktop $DESTDIR/share/applications/uxterm.desktop
65 67
66 cd .. 68 cd ..
67 rm -rf $PKGNAME-$PKGVERSION 69 rm -rf $PKGNAME-$PKGVERSION
70 }