-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathddccontrol
More file actions
44 lines (28 loc) · 809 Bytes
/
ddccontrol
File metadata and controls
44 lines (28 loc) · 809 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
#!/bin/bash
export CFLAGS=-"O2"
export CXXFLAGS="-O2"
PKG_VER=1.0.3
URL=https://github.com/ddccontrol/ddccontrol/archive/$PKG_VER.tar.gz
TAR=$(echo $URL | sed -r 's|(.*)/||')
DIR=ddccontrol-$(echo $TAR | sed 's|.tar.*||g')
PACKAGE=ddccontrol
# Get Package
cd /blfs/builds
wget $URL
tar -xvf $TAR
cd $DIR
# Build
./autogen.sh
./configure --prefix=/usr --disable-gnome-applet
make
# Install
sudo make DESTDIR=/pkgs/$PACKAGE install
mv /pkgs/$PACKAGE/usr/etc/dbus-1/* /pkgs/$PACKAGE/usr/share/dbus-1
cd /pkgs
sudo echo "ddccontrol-db pciutils" > /pkgs/$PACKAGE/depends
sudo echo "intltool check perl-xml-parser" > /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