-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathalsa-ucm-conf
More file actions
41 lines (28 loc) · 859 Bytes
/
alsa-ucm-conf
File metadata and controls
41 lines (28 loc) · 859 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
#!/bin/bash
export CFLAGS=-"O2"
export CXXFLAGS="-O2"
PKG_VER=1.2.15.3
URL=https://www.alsa-project.org/files/pub/lib/alsa-ucm-conf-$PKG_VER.tar.bz2
TAR=$(echo $URL | sed -r 's|(.*)/||')
DIR=$(echo $TAR | sed 's|.tar.*||g')
PACKAGE=$(echo $DIR | sed 's|-[^-]*$||g')
# Get Package
cd /blfs/builds
wget $URL
tar -xvf $TAR
cd $DIR
# Build
# Install
mkdir -p /pkgs/$PACKAGE/usr/share/alsa/
cp -av ucm2 /pkgs/$PACKAGE/usr/share/alsa/
install -vDm 644 README.md -t /pkgs/$PACKAGE/usr/share/doc/$PACKAGE/
install -vDm 644 README.md -t /pkgs/$PACKAGE/usr/share/doc/$PACKAGE/ucm2
cd /pkgs
sudo echo "" > /pkgs/$PACKAGE/depends
sudo echo "" > /pkgs/$PACKAGE/make-depends
sudo echo "$PKG_VER" > /pkgs/$PACKAGE/version
sudo tar -cvapf $PACKAGE.tar.xz $PACKAGE
sudo cp $PACKAGE.tar.xz /finished
sudo cp -rpv /pkgs/$PACKAGE/* /
cd /blfs/builds
sudo rm -r $DIR