← recipes

Commit 4e5955b

0
plików
+0
dodanych
-0
usuniętych
@@ -1,71 +1,71 @@
1 -pkgname: acpid
2 -pkgver: '2.0.34'
3 -pkgrel: '7'
4 -pkgdesc: A completely flexible, totally extensible daemon for delivering ACPI events.
5 -url: 'https://sourceforge.net/projects/acpid2/'
6 -arch: x86_64
7 -depends:
8 -- pm-utils
9 -makedepends: []
10 -source:
11 -- 'https://sourceforge.net/projects/nutyx/files/sources/nutyx-scripts/nutyx-scripts-20260315.tar.xz'
12 -- 'https://downloads.sourceforge.net/acpid2/${pkgname}-${pkgver}.tar.xz'
13 -- lid
14 -- lid.sh
15 -sha256sums:
16 -- 237d98576a0c36953edde9c142079f5f2e9e9b68b2fe708491cf2aac56d570e5
17 -- SKIP
18 -- SKIP
19 -- SKIP
20 -footprint_acpid_doc: "drwxr-xr-x\troot/root\tusr/share/doc/\ndrwxr-xr-x\troot/root\tusr/share/doc/acpid/\n-rw-r--r--\troot/root\t\
21 - usr/share/doc/acpid/COPYING\n-rw-r--r--\troot/root\tusr/share/doc/acpid/Changelog\n-rw-r--r--\troot/root\tusr/share/doc/acpid/README\n\
22 - -rw-r--r--\troot/root\tusr/share/doc/acpid/TESTPLAN\n-rw-r--r--\troot/root\tusr/share/doc/acpid/TODO\ndrwxr-xr-x\troot/root\t\
23 - usr/share/doc/acpid/samples/\n-rw-r--r--\troot/root\tusr/share/doc/acpid/samples/acpi_handler-conf\n-rwxr-xr-x\troot/root\t\
24 - usr/share/doc/acpid/samples/acpi_handler.sh\ndrwxr-xr-x\troot/root\tusr/share/doc/acpid/samples/battery/\n-rw-r--r--\troot/root\t\
25 - usr/share/doc/acpid/samples/battery/battery-conf\n-rw-r--r--\troot/root\tusr/share/doc/acpid/samples/battery/battery.sh\n\
26 - drwxr-xr-x\troot/root\tusr/share/doc/acpid/samples/panasonic/\n-rw-r--r--\troot/root\tusr/share/doc/acpid/samples/panasonic/ac_adapt.pl\n\
27 - -rw-r--r--\troot/root\tusr/share/doc/acpid/samples/panasonic/ac_adapter\n-rw-r--r--\troot/root\tusr/share/doc/acpid/samples/panasonic/hotkey\n\
28 - -rw-r--r--\troot/root\tusr/share/doc/acpid/samples/panasonic/hotkey.pl\n-rw-r--r--\troot/root\tusr/share/doc/acpid/samples/power\n\
29 - -rwxr-xr-x\troot/root\tusr/share/doc/acpid/samples/power.sh\ndrwxr-xr-x\troot/root\tusr/share/doc/acpid/samples/powerbtn/\n\
30 - -rw-r--r--\troot/root\tusr/share/doc/acpid/samples/powerbtn/powerbtn-conf\n-rwxr-xr-x\troot/root\tusr/share/doc/acpid/samples/powerbtn/powerbtn.sh\n\
31 - -rwxr-xr-x\troot/root\tusr/share/doc/acpid/samples/powerbtn/powerbtn.sh.old\n"
32 -footprint: "drwxr-xr-x\troot/root\tetc/\ndrwxr-xr-x\troot/root\tetc/acpi/\ndrwxr-xr-x\troot/root\tetc/acpi/events/\n-rw-r--r--\t\
33 - root/root\tetc/acpi/events/lid.example\n-rwxr-xr-x\troot/root\tetc/acpi/lid.sh.example\ndrwxr-xr-x\troot/root\tetc/default/\n\
34 - drwxr-xr-x\troot/root\tusr/\ndrwxr-xr-x\troot/root\tusr/bin/\n-rwxr-xr-x\troot/root\tusr/bin/acpi_listen\n-rwxr-xr-x\troot/root\t\
35 - usr/bin/acpid\n-rwxr-xr-x\troot/root\tusr/bin/kacpimon\ndrwxr-xr-x\troot/root\tusr/lib/\ndrwxr-xr-x\troot/root\tusr/lib/systemd/\n\
36 - drwxr-xr-x\troot/root\tusr/lib/systemd/system/\n-rw-r--r--\troot/root\tusr/lib/systemd/system/acpid.service\n-rw-r--r--\t\
37 - root/root\tusr/lib/systemd/system/acpid.socket\ndrwxr-xr-x\troot/root\tusr/lib/tmpfiles.d/\ndrwxr-xr-x\troot/root\tusr/share/\n"
38 -footprint_acpid_man: "drwxr-xr-x\troot/root\tusr/share/man/\ndrwxr-xr-x\troot/root\tusr/share/man/man8/\n-rw-r--r--\troot/root\t\
39 - usr/share/man/man8/acpi_listen.8.gz\n-rw-r--r--\troot/root\tusr/share/man/man8/acpid.8.gz\n-rw-r--r--\troot/root\tusr/share/man/man8/kacpimon.8.gz\n"
40 -hooks:
41 - post-install: |
42 - name=acpid
43 - version=2.0.34
44 - release=7
45 - INFO="\033[1;36m"
46 - NORMAL="\033[0;39m"
47 - [ -f etc/acpi/events/lid ] || cp -a etc/acpi/events/lid{.example,}
48 - [ -f etc/acpi/lid.sh ] || cp -a etc/acpi/lid.sh{.example,}
49 - printf "${INFO} /etc/acpi/lid.sh and /etc/acpi/events/lid created ${NORMAL}\n"
50 - printf "${INFO} Adapt them to your needs ${NORMAL}\n"
51 -build: |
52 - cd ${pkgname}-${pkgver}
53 - ./configure --prefix=/usr \
54 - --sbindir=/usr/bin \
55 - --docdir=/usr/share/doc/${pkgname}
56 - make
57 -
58 - make DESTDIR=${PKGDIR} install
59 - install -m755 -d ${PKGDIR}/etc/acpi/events
60 -
61 - cp -r samples ${PKGDIR}/usr/share/doc/${pkgname}
62 - cp -r ./lid ${PKGDIR}/etc/acpi/events/lid.example
63 - cp -r ./lid.sh ${PKGDIR}/etc/acpi/lid.sh.example
64 -
65 - chmod +x ${PKGDIR}/etc/acpi/lid.sh.example
66 -
67 - # Service
68 - cd ./nutyx-scripts-20260315
69 - make DESTDIR=${PKGDIR} install-sysd-acpid
70 -package: |
71 - true
1 +pkgname: acpid
2 +pkgver: '2.0.34'
3 +pkgrel: '7'
4 +pkgdesc: A completely flexible, totally extensible daemon for delivering ACPI events.
5 +url: 'https://sourceforge.net/projects/acpid2/'
6 +arch: x86_64
7 +depends:
8 +- pm-utils
9 +makedepends: []
10 +source:
11 +- 'https://git.paganlinux.eu/git/pagan-scripts/archive?branch=main'
12 +- 'https://downloads.sourceforge.net/acpid2/${pkgname}-${pkgver}.tar.xz'
13 +- lid
14 +- lid.sh
15 +sha256sums:
16 +- 237d98576a0c36953edde9c142079f5f2e9e9b68b2fe708491cf2aac56d570e5
17 +- SKIP
18 +- SKIP
19 +- SKIP
20 +footprint_acpid_doc: "drwxr-xr-x\troot/root\tusr/share/doc/\ndrwxr-xr-x\troot/root\tusr/share/doc/acpid/\n-rw-r--r--\troot/root\t\
21 + usr/share/doc/acpid/COPYING\n-rw-r--r--\troot/root\tusr/share/doc/acpid/Changelog\n-rw-r--r--\troot/root\tusr/share/doc/acpid/README\n\
22 + -rw-r--r--\troot/root\tusr/share/doc/acpid/TESTPLAN\n-rw-r--r--\troot/root\tusr/share/doc/acpid/TODO\ndrwxr-xr-x\troot/root\t\
23 + usr/share/doc/acpid/samples/\n-rw-r--r--\troot/root\tusr/share/doc/acpid/samples/acpi_handler-conf\n-rwxr-xr-x\troot/root\t\
24 + usr/share/doc/acpid/samples/acpi_handler.sh\ndrwxr-xr-x\troot/root\tusr/share/doc/acpid/samples/battery/\n-rw-r--r--\troot/root\t\
25 + usr/share/doc/acpid/samples/battery/battery-conf\n-rw-r--r--\troot/root\tusr/share/doc/acpid/samples/battery/battery.sh\n\
26 + drwxr-xr-x\troot/root\tusr/share/doc/acpid/samples/panasonic/\n-rw-r--r--\troot/root\tusr/share/doc/acpid/samples/panasonic/ac_adapt.pl\n\
27 + -rw-r--r--\troot/root\tusr/share/doc/acpid/samples/panasonic/ac_adapter\n-rw-r--r--\troot/root\tusr/share/doc/acpid/samples/panasonic/hotkey\n\
28 + -rw-r--r--\troot/root\tusr/share/doc/acpid/samples/panasonic/hotkey.pl\n-rw-r--r--\troot/root\tusr/share/doc/acpid/samples/power\n\
29 + -rwxr-xr-x\troot/root\tusr/share/doc/acpid/samples/power.sh\ndrwxr-xr-x\troot/root\tusr/share/doc/acpid/samples/powerbtn/\n\
30 + -rw-r--r--\troot/root\tusr/share/doc/acpid/samples/powerbtn/powerbtn-conf\n-rwxr-xr-x\troot/root\tusr/share/doc/acpid/samples/powerbtn/powerbtn.sh\n\
31 + -rwxr-xr-x\troot/root\tusr/share/doc/acpid/samples/powerbtn/powerbtn.sh.old\n"
32 +footprint: "drwxr-xr-x\troot/root\tetc/\ndrwxr-xr-x\troot/root\tetc/acpi/\ndrwxr-xr-x\troot/root\tetc/acpi/events/\n-rw-r--r--\t\
33 + root/root\tetc/acpi/events/lid.example\n-rwxr-xr-x\troot/root\tetc/acpi/lid.sh.example\ndrwxr-xr-x\troot/root\tetc/default/\n\
34 + drwxr-xr-x\troot/root\tusr/\ndrwxr-xr-x\troot/root\tusr/bin/\n-rwxr-xr-x\troot/root\tusr/bin/acpi_listen\n-rwxr-xr-x\troot/root\t\
35 + usr/bin/acpid\n-rwxr-xr-x\troot/root\tusr/bin/kacpimon\ndrwxr-xr-x\troot/root\tusr/lib/\ndrwxr-xr-x\troot/root\tusr/lib/systemd/\n\
36 + drwxr-xr-x\troot/root\tusr/lib/systemd/system/\n-rw-r--r--\troot/root\tusr/lib/systemd/system/acpid.service\n-rw-r--r--\t\
37 + root/root\tusr/lib/systemd/system/acpid.socket\ndrwxr-xr-x\troot/root\tusr/lib/tmpfiles.d/\ndrwxr-xr-x\troot/root\tusr/share/\n"
38 +footprint_acpid_man: "drwxr-xr-x\troot/root\tusr/share/man/\ndrwxr-xr-x\troot/root\tusr/share/man/man8/\n-rw-r--r--\troot/root\t\
39 + usr/share/man/man8/acpi_listen.8.gz\n-rw-r--r--\troot/root\tusr/share/man/man8/acpid.8.gz\n-rw-r--r--\troot/root\tusr/share/man/man8/kacpimon.8.gz\n"
40 +hooks:
41 + post-install: |
42 + name=acpid
43 + version=2.0.34
44 + release=7
45 + INFO="\033[1;36m"
46 + NORMAL="\033[0;39m"
47 + [ -f etc/acpi/events/lid ] || cp -a etc/acpi/events/lid{.example,}
48 + [ -f etc/acpi/lid.sh ] || cp -a etc/acpi/lid.sh{.example,}
49 + printf "${INFO} /etc/acpi/lid.sh and /etc/acpi/events/lid created ${NORMAL}\n"
50 + printf "${INFO} Adapt them to your needs ${NORMAL}\n"
51 +build: |
52 + cd ${pkgname}-${pkgver}
53 + ./configure --prefix=/usr \
54 + --sbindir=/usr/bin \
55 + --docdir=/usr/share/doc/${pkgname}
56 + make
57 +
58 + make DESTDIR=${PKGDIR} install
59 + install -m755 -d ${PKGDIR}/etc/acpi/events
60 +
61 + cp -r samples ${PKGDIR}/usr/share/doc/${pkgname}
62 + cp -r ./lid ${PKGDIR}/etc/acpi/events/lid.example
63 + cp -r ./lid.sh ${PKGDIR}/etc/acpi/lid.sh.example
64 +
65 + chmod +x ${PKGDIR}/etc/acpi/lid.sh.example
66 +
67 + # Service
68 + cd ./nutyx-scripts-20260315
69 + make DESTDIR=${PKGDIR} install-sysd-acpid
70 +package: |
71 + true