-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadwaita
49 lines (31 loc) · 941 Bytes
/
adwaita
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/bash
export CFLAGS=-"O2"
export CXXFLAGS="-O2"
PKG_VER=47.0
GNOME_MAJOR=$(echo $PKG_VER | sed 's/\..*//g')
GNOME_MINOR=$(echo $PKG_VER | sed 's/.*\.//g')
URL=https://download.gnome.org/sources/adwaita-icon-theme/$GNOME_MAJOR/adwaita-icon-theme-$GNOME_MAJOR.$GNOME_MINOR.tar.xz
TAR=$(echo $URL | sed -r 's|(.*)/||')
DIR=$(echo $TAR | sed 's|.tar.*||g')
PACKAGE=adwaita
# Get Package
cd /blfs/builds
wget $URL
tar -xvf $TAR
cd $DIR
# Build
mkdir build &&
cd build &&
meson setup --prefix=/usr --buildtype=release ..
ninja
# Install
ninja install
DESTDIR=/pkgs/$PACKAGE ninja install
cd /pkgs
sudo echo "" > /pkgs/$PACKAGE/depends
sudo echo "glib-compile-schemas /usr/share/glib-2.0/schemas && gtk-update-icon-cache --force /usr/share/icons/Adwaita" > /pkgs/$PACKAGE/postinst
sudo rm -rf /pkgs/$PACKAGE/blfs
sudo tar -cvpzf $PACKAGE.tar.xz $PACKAGE
sudo cp $PACKAGE.tar.xz /finished
cd /blfs/builds
sudo rm -r $DIR