File builders/st-4536f46cfff50c66a115755def0155d8e246b02f/builder.sh copied from file builders/st-1/builder.sh (similarity 77%) (mode: 100644) (index e81a129..247a218) |
1 |
1 |
src_name=st |
src_name=st |
2 |
|
git_commit=a2a704492b9f4d2408d180f7aeeacf4c789a1d67 |
|
|
2 |
|
git_commit=${pkg_name##*-} |
|
3 |
|
slot=$git_commit |
3 |
4 |
git_url0=git://git.suckless.org/st |
git_url0=git://git.suckless.org/st |
4 |
5 |
|
|
5 |
|
slot=1 |
|
6 |
6 |
|
|
7 |
7 |
src_dir=$src_dir_root/$src_name |
src_dir=$src_dir_root/$src_name |
8 |
8 |
pkg_dir=/run/pkgs/$src_name |
pkg_dir=/run/pkgs/$src_name |
|
... |
... |
cp -r $src_dir $pkg_dir |
12 |
12 |
|
|
13 |
13 |
cd $pkg_dir |
cd $pkg_dir |
14 |
14 |
|
|
15 |
|
git checkout --force $git_commit |
|
16 |
|
git reset --hard |
|
17 |
|
|
|
18 |
|
cp -f $nyan_root/builders/$pkg_name/st-alpha-0.8.2.diff ./st-alpha-0.8.2.diff |
|
19 |
|
patch -Np1 -i ./st-alpha-0.8.2.diff |
|
|
15 |
|
if test x$git_commit = x; then |
|
16 |
|
git checkout --force $git_commit |
|
17 |
|
git reset --hard |
|
18 |
|
fi |
20 |
19 |
|
|
21 |
20 |
# copy our source configuration and build configuration files |
# copy our source configuration and build configuration files |
22 |
21 |
cp -f $nyan_root/builders/$pkg_name/config.h ./config.h |
cp -f $nyan_root/builders/$pkg_name/config.h ./config.h |
|
... |
... |
export "PKG_CONFIG_LIBDIR=\ |
37 |
36 |
/nyan/expat/current/lib/pkgconfig:\ |
/nyan/expat/current/lib/pkgconfig:\ |
38 |
37 |
/nyan/fontconfig/current/lib/pkgconfig" |
/nyan/fontconfig/current/lib/pkgconfig" |
39 |
38 |
|
|
40 |
|
make \ |
|
|
39 |
|
make \ |
41 |
40 |
\ |
\ |
42 |
|
PREFIX=/nyan/st/$slot \ |
|
43 |
|
'CFLAGS=-O2 -pipe -fPIC' \ |
|
|
41 |
|
PREFIX=/nyan/st/$slot \ |
|
42 |
|
'CFLAGS=-O2 -pipe -fPIC' \ |
44 |
43 |
"CC=gcc -static-libgcc -B/nyan/glibc/current/lib -L/nyan/glibc/current/lib \ |
"CC=gcc -static-libgcc -B/nyan/glibc/current/lib -L/nyan/glibc/current/lib \ |
|
44 |
|
-isystem /nyan/glibc/current/include \ |
|
45 |
|
-isystem /nyan/linux-headers/current/include \ |
|
46 |
|
-static-libgcc -B/nyan/glibc/current/lib -L/nyan/glibc/current/lib \ |
45 |
47 |
-Wl,-rpath-link,\ |
-Wl,-rpath-link,\ |
46 |
48 |
/nyan/libXau/current/lib:\ |
/nyan/libXau/current/lib:\ |
47 |
49 |
/nyan/libxcb/current/lib:\ |
/nyan/libxcb/current/lib:\ |
|
... |
... |
strip -s /nyan/st/$slot/bin/st |
64 |
66 |
# default color inverted st |
# default color inverted st |
65 |
67 |
cp -f $nyan_root/builders/$pkg_name/config.h.invert ./config.h |
cp -f $nyan_root/builders/$pkg_name/config.h.invert ./config.h |
66 |
68 |
|
|
67 |
|
make \ |
|
|
69 |
|
make \ |
68 |
70 |
\ |
\ |
69 |
|
PREFIX=/nyan/st/$slot \ |
|
70 |
|
'CFLAGS=-O2 -pipe -fPIC' \ |
|
71 |
|
"CC=gcc -static-libgcc -B/nyan/glibc/current/lib -L/nyan/glibc/current/lib \ |
|
|
71 |
|
PREFIX=/nyan/st/$slot \ |
|
72 |
|
'CFLAGS=-O2 -pipe -fPIC' \ |
|
73 |
|
"CC=gcc \ |
|
74 |
|
-isystem /nyan/glibc/current/include \ |
|
75 |
|
-isystem /nyan/linux-headers/current/include \ |
|
76 |
|
-static-libgcc -B/nyan/glibc/current/lib -L/nyan/glibc/current/lib \ |
72 |
77 |
-Wl,-rpath-link,\ |
-Wl,-rpath-link,\ |
73 |
78 |
/nyan/libXau/current/lib:\ |
/nyan/libXau/current/lib:\ |
74 |
79 |
/nyan/libxcb/current/lib:\ |
/nyan/libxcb/current/lib:\ |
|
... |
... |
cp -f ./st /nyan/st/$slot/bin/st-invert |
83 |
88 |
strip -s /nyan/st/$slot/bin/st-invert |
strip -s /nyan/st/$slot/bin/st-invert |
84 |
89 |
|
|
85 |
90 |
rm -Rf $pkg_dir |
rm -Rf $pkg_dir |
86 |
|
rmdir /run/pkgs |
|
File builders/st-4536f46cfff50c66a115755def0155d8e246b02f/config.h copied from file builders/st-1/config.h (similarity 99%) (mode: 100644) (index 741da99..4f29e23) |
... |
... |
char *termname = "st-256color"; |
93 |
93 |
*/ |
*/ |
94 |
94 |
unsigned int tabspaces = 8; |
unsigned int tabspaces = 8; |
95 |
95 |
|
|
96 |
|
/* bg opacity */ |
|
97 |
|
float alpha = 0.8; |
|
98 |
|
|
|
99 |
96 |
/* Terminal colors (16 first used in escape sequence) */ |
/* Terminal colors (16 first used in escape sequence) */ |
100 |
97 |
static const char *colorname[] = { |
static const char *colorname[] = { |
101 |
98 |
/* 8 normal colors */ |
/* 8 normal colors */ |
|
... |
... |
static const char *colorname[] = { |
123 |
120 |
/* more colors can be added after 255 to use with DefaultXX */ |
/* more colors can be added after 255 to use with DefaultXX */ |
124 |
121 |
"#cccccc", |
"#cccccc", |
125 |
122 |
"#555555", |
"#555555", |
126 |
|
"black", |
|
127 |
123 |
}; |
}; |
128 |
124 |
|
|
129 |
125 |
|
|
|
... |
... |
static const char *colorname[] = { |
132 |
128 |
* foreground, background, cursor, reverse cursor |
* foreground, background, cursor, reverse cursor |
133 |
129 |
*/ |
*/ |
134 |
130 |
unsigned int defaultfg = 7; |
unsigned int defaultfg = 7; |
135 |
|
unsigned int defaultbg = 258; |
|
|
131 |
|
unsigned int defaultbg = 0; |
136 |
132 |
static unsigned int defaultcs = 256; |
static unsigned int defaultcs = 256; |
137 |
133 |
static unsigned int defaultrcs = 257; |
static unsigned int defaultrcs = 257; |
138 |
134 |
|
|
File builders/st-4536f46cfff50c66a115755def0155d8e246b02f/config.h.invert copied from file builders/st-1/config.h.invert (similarity 99%) (mode: 100644) (index 3f36481..ea0c990) |
... |
... |
char *termname = "st-256color"; |
93 |
93 |
*/ |
*/ |
94 |
94 |
unsigned int tabspaces = 8; |
unsigned int tabspaces = 8; |
95 |
95 |
|
|
96 |
|
/* bg opacity */ |
|
97 |
|
float alpha = 0.8; |
|
98 |
|
|
|
99 |
96 |
/* Terminal colors (16 first used in escape sequence) */ |
/* Terminal colors (16 first used in escape sequence) */ |
100 |
97 |
static const char *colorname[] = { |
static const char *colorname[] = { |
101 |
98 |
/* 8 normal colors */ |
/* 8 normal colors */ |
|
... |
... |
static const char *colorname[] = { |
123 |
120 |
/* more colors can be added after 255 to use with DefaultXX */ |
/* more colors can be added after 255 to use with DefaultXX */ |
124 |
121 |
"#cccccc", |
"#cccccc", |
125 |
122 |
"#555555", |
"#555555", |
126 |
|
"black", |
|
127 |
123 |
}; |
}; |
128 |
124 |
|
|
129 |
125 |
|
|
|
... |
... |
static const char *colorname[] = { |
131 |
127 |
* Default colors (colorname index) |
* Default colors (colorname index) |
132 |
128 |
* foreground, background, cursor, reverse cursor |
* foreground, background, cursor, reverse cursor |
133 |
129 |
*/ |
*/ |
134 |
|
unsigned int defaultfg = 0; |
|
135 |
130 |
unsigned int defaultbg = 7; |
unsigned int defaultbg = 7; |
136 |
|
static unsigned int defaultcs = 256; |
|
137 |
|
static unsigned int defaultrcs = 257; |
|
|
131 |
|
unsigned int defaultfg = 0; |
|
132 |
|
static unsigned int defaultrcs = 256; |
|
133 |
|
static unsigned int defaultcs = 257; |
138 |
134 |
|
|
139 |
135 |
/* |
/* |
140 |
136 |
* Default shape of cursor |
* Default shape of cursor |