Commit 54cff07
3
plików
+37
dodanych
-28
usuniętych
@@ -45,7 +45,7 @@ footprint: "drwxr-xr-x\troot/root\tusr/\ndrwxr-xr-x\troot/root\tusr/bin/\n-rwxr-
45
45
-rw-r--r--\troot/root\tusr/share/libtool/slist.c\ndrwxr-xr-x\troot/root\tusr/share/man/\ndrwxr-xr-x\troot/root\tusr/share/man/man1/\n\
46
46
-rw-r--r--\troot/root\tusr/share/man/man1/libtool.1.gz\n-rw-r--r--\troot/root\tusr/share/man/man1/libtoolize.1.gz\n"
47
47
build: |
48
- cd libtool-*
48
+ cd libtool-${pkgver}
49
49
./configure --prefix=/usr
50
50
make
51
51
make DESTDIR=${PKGDIR} install
@@ -1,38 +1,46 @@
1
1
pkgname: 'lsb-release'
2
2
pkgver: '1.4'
3
-pkgrel: '2'
3
+pkgrel: '3'
4
4
pkgdesc: 'Provides informations about LSB status (Linux Standards Base) of the distribution.'
5
5
url: 'https://www.linuxbase.org/'
6
6
arch: x86_64
7
7
depends: []
8
-makedepends:
9
-- help2man
10
-
11
-source:
12
-- 'http://sourceforge.net/projects/lsb/files/${alias}/${pkgver}/${pkgname}-${pkgver}.tar.gz'
13
-
14
-sha256sums:
15
-- SKIP
16
-
17
-footprint: |
18
- drwxr-xr-x root/root usr/
19
- drwxr-xr-x root/root usr/bin/
20
- -rwxr-xr-x root/root usr/bin/lsb_release
21
- drwxr-xr-x root/root usr/share/
22
-
23
-footprint_lsb-release_man: |
24
- drwxr-xr-x root/root usr/share/man/
25
- drwxr-xr-x root/root usr/share/man/man1/
26
- -rw-r--r-- root/root usr/share/man/man1/lsb_release.1.gz
8
+makedepends: []
27
9
28
10
build: |
29
- cd ${pkgname}-${pkgver}
30
- sed -i "s|n/a|unavailable|" lsb_release
31
- ./help2man -N --include ./lsb_release.examples \
32
- --alt_version_key=program_version ./lsb_release > lsb_release.1
33
- mkdir -p ${PKGDIR}/usr/{bin,share/man/man1}
34
- install -v -m 644 lsb_release.1 ${PKGDIR}/usr/share/man/man1/lsb_release.1
35
- install -v -m 755 lsb_release ${PKGDIR}/usr/bin/lsb_release
11
+ # Upstream lsb-release 1.4 zniknął z sieci (404 na sourceforge) – dostarczamy
12
+ # własny, minimalny odpowiednik czytający /etc/os-release.
13
+ mkdir -p ${PKGDIR}/usr/bin
14
+ cat > ${PKGDIR}/usr/bin/lsb_release << "EOF"
15
+ #!/bin/sh
16
+ if [ -r /etc/os-release ]; then
17
+ . /etc/os-release
18
+ elif [ -r /etc/lsb-release ]; then
19
+ . /etc/lsb-release
20
+ fi
21
+ : "${ID:=PaganOS}"
22
+ : "${PRETTY_NAME:=PaganOS Linux}"
23
+ : "${VERSION_ID:=rolling}"
24
+ : "${VERSION_CODENAME:=-}"
25
+ case "$1" in
26
+ -a|--all)
27
+ echo "Distributor ID: $ID"
28
+ echo "Description: $PRETTY_NAME"
29
+ echo "Release: $VERSION_ID"
30
+ echo "Codename: $VERSION_CODENAME" ;;
31
+ -i|--id) echo "$ID" ;;
32
+ -d|--description) echo "$PRETTY_NAME" ;;
33
+ -r|--release) echo "$VERSION_ID" ;;
34
+ -c|--codename) echo "$VERSION_CODENAME" ;;
35
+ -s|--short) echo "$PRETTY_NAME" ;;
36
+ -h|--help)
37
+ echo "Użycie: lsb_release [opcje]"
38
+ echo " -a wszystkie informacje"
39
+ exit 0 ;;
40
+ *) echo "Użycie: lsb_release [opcje]"; exit 1 ;;
41
+ esac
42
+ EOF
43
+ chmod 755 ${PKGDIR}/usr/bin/lsb_release
36
44
37
45
package: |
38
46
true
@@ -184,6 +184,7 @@ footprint_galculator_zh: |
184
184
build: |
185
185
CFLAGS+=' -fcommon'
186
186
cd ${pkgname}-${pkgver}
187
+ autoreconf -fi # snapshot z git nie zawiera configure
187
188
./configure \
188
189
--prefix=/usr
189
190
make