-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathayatana-ido
More file actions
46 lines (29 loc) · 822 Bytes
/
ayatana-ido
File metadata and controls
46 lines (29 loc) · 822 Bytes
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
#!/bin/bash
export CFLAGS="-O2 "
export CXXFLAGS="-O2 "
PKG_VER=0.10.4
URL=https://github.com/AyatanaIndicators/ayatana-ido/archive/refs/tags/$PKG_VER.tar.gz
TAR=$(echo $URL | sed -r 's|(.*)/||')
DIR=ayatana-ido-$PKG_VER
PACKAGE=$(echo $DIR | sed 's|-[^-]*$||g')
# Get Package
cd /blfs/builds
wget $URL
tar -xvf $TAR
cd $DIR
# Build
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=release -G Ninja ..
ninja
# Install
sudo DESTDIR=/pkgs/$PACKAGE ninja install
sudo ninja install
cd /pkgs
sudo echo "cairo gdk-pixbuf glib gtk3 pango" > /pkgs/$PACKAGE/depends
sudo echo "gobject-introspection git" > /pkgs/$PACKAGE/make-depends
sudo echo "$PKG_VER" > /pkgs/$PACKAGE/version
sudo tar -cvapf $PACKAGE.tar.xz $PACKAGE
sudo cp $PACKAGE.tar.xz /finished
cd /blfs/builds
sudo rm -r $DIR