-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathappstream-qt5
More file actions
45 lines (30 loc) · 787 Bytes
/
appstream-qt5
File metadata and controls
45 lines (30 loc) · 787 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
#!/bin/bash
#NLFS
export CFLAGS=-"O2"
export CXXFLAGS="-O2"
PKG_VER=1.0.0
URL=https://www.freedesktop.org/software/appstream/releases/AppStream-$PKG_VER.tar.xz
TAR=$(echo $URL | sed -r 's|(.*)/||')
DIR=$(echo $TAR | sed 's|.tar.*||g')
PACKAGE=appstream-qt5
# Get Package
cd /blfs/builds
wget $URL
tar -xvf $TAR
cd $DIR
# Build
mkdir abuild
cd abuild
meson setup --prefix=/usr --buildtype=release -Dapidocs=false -Dqt5=true ..
ninja
# Install
sudo DESTDIR=/pkgs/$PACKAGE ninja install
sudo ninja install
cd /pkgs
sudo echo "appstream qt5" > /pkgs/$PACKAGE/depends
sudo echo "appstream qt5"> /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