Skip to content

Commit 00b1b53

Browse files
authored
Merge pull request #23 from rootd/master
Update package generation
2 parents 33f1a3c + 5535f7b commit 00b1b53

File tree

5 files changed

+230
-95
lines changed

5 files changed

+230
-95
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,18 @@ jobs:
4848
ninja-version: 1.10.2
4949
- name: Install nFPM
5050
run: echo 'deb [trusted=yes] https://repo.goreleaser.com/apt/ /' | sudo tee /etc/apt/sources.list.d/goreleaser.list && sudo apt update && sudo apt install nfpm
51-
- name: Prepare nFPM config
52-
run: cd /home/runner/work/libfprint/libfprint && cp nfpm_sample.yaml nfpm.yaml && sed -i "s/COMMITID/$(git rev-parse --short HEAD)/g" nfpm.yaml && mkdir ./output
51+
- name: Prepare nFPM DEB config
52+
run: cd /home/runner/work/libfprint/libfprint && cp nfpm_deb_sample.yaml nfpm_deb.yaml && sed -i "s/COMMITID/$(git rev-parse --short HEAD)/g" nfpm_deb.yaml && mkdir ./output
53+
- name: Prepare nFPM RPM config
54+
run: cd /home/runner/work/libfprint/libfprint && cp nfpm_rpm_sample.yaml nfpm_rpm.yaml && sed -i "s/COMMITID/$(git rev-parse --short HEAD)/g" nfpm_rpm.yaml
55+
- name: Prepare nFPM Arch config
56+
run: cd /home/runner/work/libfprint/libfprint && cp nfpm_arch_sample.yaml nfpm_arch.yaml && sed -i "s/COMMITID/$(git rev-parse --short HEAD)/g" nfpm_arch.yaml
5357
- name: Generating DEB package
54-
run: nfpm pkg --packager deb --target ./output/
58+
run: nfpm pkg --packager deb --config ./nfpm_deb.yaml --target ./output/
5559
- name: Generating RPM package
56-
run: nfpm pkg --packager rpm --target ./output/
60+
run: nfpm pkg --packager rpm --config ./nfpm_rpm.yaml --target ./output/
5761
- name: Generating ArchLinux package
58-
run: nfpm pkg --packager archlinux --target ./output/
62+
run: nfpm pkg --packager archlinux --config ./nfpm_arch.yaml --target ./output/
5963
- uses: actions/upload-artifact@v3
6064
with:
6165
name: meson-build-artifacts

nfpm_arch_sample.yaml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# check https://nfpm.goreleaser.com/configuration for detailed usage
2+
#
3+
name: "libfprint"
4+
arch: "amd64"
5+
platform: "linux"
6+
version: "1.94.4"
7+
prerelease: goodixtls-COMMITID
8+
epoch: 99999999
9+
section: "default"
10+
priority: "extra"
11+
replaces:
12+
- libfprint
13+
provides:
14+
- libfprint
15+
- libfprint-2.so
16+
17+
depends:
18+
- libgudev
19+
- libgusb
20+
- nss
21+
- openssl
22+
- pixman
23+
maintainer: "Alexander Meiler <[email protected]>, Matthieu CHARETTE <[email protected]>"
24+
description: |
25+
This is a community implemented driver for Goodix TLS devices on Linux.
26+
vendor: "Goodix Fingerprint Linux Development"
27+
homepage: "https://github.com/goodix-fp-linux-dev"
28+
license: "GNU LGPL 2.1"
29+
contents:
30+
- src: ./build/libfprint/fp-enums.h
31+
dst: /usr/include/libfprint-2/fp-enums.h
32+
33+
- src: ./build/libfprint/libfprint-2.so.2.0.0
34+
dst: /usr/lib64/libfprint-2.so.2.0.0
35+
36+
- src: ./build/libfprint/70-libfprint-2.rules
37+
dst: /usr/lib/udev/rules.d/70-libfprint-2.rules
38+
39+
- src: ./build/libfprint/FPrint-2.0.gir
40+
dst: /usr/share/gir-1.0/FPrint-2.0.gir
41+
42+
- src: ./build/libfprint/FPrint-2.0.typelib
43+
dst: /usr/lib64/girepository-1.0/FPrint-2.0.typelib
44+
45+
- src: ./libfprint/fprint.h
46+
dst: /usr/include/libfprint-2/fprint.h
47+
48+
- src: ./libfprint/fp-context.h
49+
dst: /usr/include/libfprint-2/fp-context.h
50+
51+
- src: ./libfprint/fp-device.h
52+
dst: /usr/include/libfprint-2/fp-device.h
53+
54+
- src: ./libfprint/fp-image-device.h
55+
dst: /usr/include/libfprint-2/fp-image-device.h
56+
57+
- src: ./libfprint/fp-image.h
58+
dst: /usr/include/libfprint-2/fp-image.h
59+
60+
- src: ./libfprint/fp-print.h
61+
dst: /usr/include/libfprint-2/fp-print.h
62+
63+
- src: ./build/meson-private/libfprint-2.pc
64+
dst: /usr/lib64/pkgconfig/libfprint-2.pc
65+
66+
- src: /usr/lib64/libfprint-2.so.2.0.0
67+
dst: /usr/lib64/libfprint-2.so.2
68+
type: symlink
69+
70+
- src: /usr/lib64/libfprint-2.so.2.0.0
71+
dst: /usr/lib64/libfprint-2.so
72+
type: symlink

nfpm_deb_sample.yaml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# check https://nfpm.goreleaser.com/configuration for detailed usage
2+
#
3+
name: "libfprint-2-2"
4+
arch: "amd64"
5+
platform: "linux"
6+
version: "1.94.4"
7+
prerelease: goodixtls-COMMITID
8+
epoch: 99999999
9+
section: "default"
10+
priority: "extra"
11+
replaces:
12+
- libfprint-2-2
13+
- libfprint
14+
provides:
15+
- libfprint
16+
- libfprint-2.so
17+
- libfprint-2-2
18+
depends:
19+
- libc6
20+
- libglib2.0-0
21+
- libgudev-1.0-0
22+
- libgusb2
23+
- libnss3
24+
- openssl
25+
- libpixman-1-0
26+
maintainer: "Alexander Meiler <[email protected]>, Matthieu CHARETTE <[email protected]>"
27+
description: |
28+
This is a community implemented driver for Goodix TLS devices on Linux.
29+
vendor: "Goodix Fingerprint Linux Development"
30+
homepage: "https://github.com/goodix-fp-linux-dev"
31+
license: "GNU LGPL 2.1"
32+
contents:
33+
- src: ./build/libfprint/fp-enums.h
34+
dst: /usr/include/libfprint-2/fp-enums.h
35+
36+
- src: ./build/libfprint/libfprint-2.so.2.0.0
37+
dst: /usr/lib/x86_64-linux-gnu/libfprint-2.so.2.0.0
38+
39+
- src: ./build/libfprint/70-libfprint-2.rules
40+
dst: /usr/lib/udev/rules.d/70-libfprint-2.rules
41+
42+
- src: ./build/libfprint/FPrint-2.0.gir
43+
dst: /usr/share/gir-1.0/FPrint-2.0.gir
44+
45+
- src: ./build/libfprint/FPrint-2.0.typelib
46+
dst: /usr/lib/x86_64-linux-gnu/girepository-1.0/FPrint-2.0.typelib
47+
48+
- src: ./libfprint/fprint.h
49+
dst: /usr/include/libfprint-2/fprint.h
50+
51+
- src: ./libfprint/fp-context.h
52+
dst: /usr/include/libfprint-2/fp-context.h
53+
54+
- src: ./libfprint/fp-device.h
55+
dst: /usr/include/libfprint-2/fp-device.h
56+
57+
- src: ./libfprint/fp-image-device.h
58+
dst: /usr/include/libfprint-2/fp-image-device.h
59+
60+
- src: ./libfprint/fp-image.h
61+
dst: /usr/include/libfprint-2/fp-image.h
62+
63+
- src: ./libfprint/fp-print.h
64+
dst: /usr/include/libfprint-2/fp-print.h
65+
66+
- src: ./build/meson-private/libfprint-2.pc
67+
dst: /usr/lib/x86_64-linux-gnu/pkgconfig/libfprint-2.pc
68+
69+
- src: /usr/lib/x86_64-linux-gnu/libfprint-2.so.2.0.0
70+
dst: /usr/lib/x86_64-linux-gnu/libfprint-2.so.2
71+
type: symlink
72+
73+
- src: /usr/lib/x86_64-linux-gnu/libfprint-2.so.2.0.0
74+
dst: /usr/lib/x86_64-linux-gnu/libfprint-2.so
75+
type: symlink

nfpm_rpm_sample.yaml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# check https://nfpm.goreleaser.com/configuration for detailed usage
2+
#
3+
name: "libfprint"
4+
arch: "amd64"
5+
platform: "linux"
6+
version: "1.94.4"
7+
prerelease: goodixtls-COMMITID
8+
epoch: 99999999
9+
section: "default"
10+
priority: "extra"
11+
replaces:
12+
- libfprint
13+
provides:
14+
- libfprint
15+
- libfprint(aarch-64)
16+
- libfprint-2.so.2()(64bit)
17+
- libfprint-2.so.2(LIBFPRINT_2.0.0)(64bit)
18+
19+
depends:
20+
- libgudev
21+
- libgusb
22+
- nss
23+
- openssl
24+
- pixman
25+
maintainer: "Alexander Meiler <[email protected]>, Matthieu CHARETTE <[email protected]>"
26+
description: |
27+
This is a community implemented driver for Goodix TLS devices on Linux.
28+
vendor: "Goodix Fingerprint Linux Development"
29+
homepage: "https://github.com/goodix-fp-linux-dev"
30+
license: "GNU LGPL 2.1"
31+
contents:
32+
- src: ./build/libfprint/fp-enums.h
33+
dst: /usr/include/libfprint-2/fp-enums.h
34+
35+
- src: ./build/libfprint/libfprint-2.so.2.0.0
36+
dst: /usr/lib64/libfprint-2.so.2.0.0
37+
38+
- src: ./build/libfprint/70-libfprint-2.rules
39+
dst: /usr/lib/udev/rules.d/70-libfprint-2.rules
40+
41+
- src: ./build/libfprint/FPrint-2.0.gir
42+
dst: /usr/share/gir-1.0/FPrint-2.0.gir
43+
44+
- src: ./build/libfprint/FPrint-2.0.typelib
45+
dst: /usr/lib64/girepository-1.0/FPrint-2.0.typelib
46+
47+
- src: ./libfprint/fprint.h
48+
dst: /usr/include/libfprint-2/fprint.h
49+
50+
- src: ./libfprint/fp-context.h
51+
dst: /usr/include/libfprint-2/fp-context.h
52+
53+
- src: ./libfprint/fp-device.h
54+
dst: /usr/include/libfprint-2/fp-device.h
55+
56+
- src: ./libfprint/fp-image-device.h
57+
dst: /usr/include/libfprint-2/fp-image-device.h
58+
59+
- src: ./libfprint/fp-image.h
60+
dst: /usr/include/libfprint-2/fp-image.h
61+
62+
- src: ./libfprint/fp-print.h
63+
dst: /usr/include/libfprint-2/fp-print.h
64+
65+
- src: ./build/meson-private/libfprint-2.pc
66+
dst: /usr/lib64/pkgconfig/libfprint-2.pc
67+
68+
- src: /usr/lib64/libfprint-2.so.2.0.0
69+
dst: /usr/lib64/libfprint-2.so.2
70+
type: symlink
71+
72+
- src: /usr/lib64/libfprint-2.so.2.0.0
73+
dst: /usr/lib64/libfprint-2.so
74+
type: symlink

nfpm_sample.yaml

Lines changed: 0 additions & 90 deletions
This file was deleted.

0 commit comments

Comments
 (0)