Switch to new download format and remove /run directory
This commit is contained in:
@@ -1,16 +1,44 @@
|
|||||||
name: cups
|
name: cups
|
||||||
description: An open-source printing system
|
description: An open-source printing system
|
||||||
version: 2.4.14
|
version: 2.4.14
|
||||||
|
revision: 2
|
||||||
url: https://openprinting.github.io/cups/
|
url: https://openprinting.github.io/cups/
|
||||||
license: Apache2 with LLVM-exception and BSD-3-Clause and Zlib and BSD-2-Clause
|
license: Apache2 with LLVM-exception and BSD-3-Clause and Zlib and BSD-2-Clause
|
||||||
architecture: any
|
architecture: any
|
||||||
optional_depends: ["libusb","xdg-utils"]
|
|
||||||
make_depends: ["acl","dbus","gnutls","libusb","pam","udev"]
|
|
||||||
keep: ["etc/cups/client.conf"]
|
|
||||||
type: source
|
type: source
|
||||||
|
keep:
|
||||||
|
- etc/cups/client.conf
|
||||||
|
optional_depends:
|
||||||
|
- libusb
|
||||||
|
- xdg-utils
|
||||||
|
make_depends:
|
||||||
|
- acl
|
||||||
|
- dbus
|
||||||
|
- gnutls
|
||||||
|
- libusb
|
||||||
|
- pam
|
||||||
|
- udev
|
||||||
|
downloads:
|
||||||
|
- url: https://github.com/OpenPrinting/cups/releases/download/v${BPM_PKG_VERSION}/cups-${BPM_PKG_VERSION}-source.tar.gz
|
||||||
|
extract_to: ${BPM_SOURCE}
|
||||||
|
extract_strip_components: 1
|
||||||
|
checksum: 660288020dd6f79caf799811c4c1a3207a48689899ac2093959d70a3bdcb7699
|
||||||
split_packages:
|
split_packages:
|
||||||
- name: cups
|
- name: cups
|
||||||
depends: ["acl", "dbus", "gcc-libs", "glibc", "gnutls", "hicolor-icon-theme", "libcups", "sysusers", "pam", "udev"]
|
depends:
|
||||||
|
- acl
|
||||||
|
- dbus
|
||||||
|
- gcc-libs
|
||||||
|
- glibc
|
||||||
|
- gnutls
|
||||||
|
- hicolor-icon-theme
|
||||||
|
- libcups
|
||||||
|
- sysusers
|
||||||
|
- pam
|
||||||
|
- udev
|
||||||
- name: libcups
|
- name: libcups
|
||||||
description: Library and header files for the CUPS printing system
|
description: Library and header files for the CUPS printing system
|
||||||
depends: ["glibc","gnutls","zlib"]
|
depends:
|
||||||
|
- glibc
|
||||||
|
- gnutls
|
||||||
|
- zlib
|
||||||
|
|||||||
@@ -2,16 +2,6 @@
|
|||||||
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
|
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
|
||||||
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
|
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
|
||||||
|
|
||||||
DOWNLOAD="https://github.com/OpenPrinting/cups/releases/download/v${BPM_PKG_VERSION}/cups-${BPM_PKG_VERSION}-source.tar.gz"
|
|
||||||
FILENAME="${DOWNLOAD##*/}"
|
|
||||||
|
|
||||||
# The prepare function is executed in the root of the temp directory
|
|
||||||
# This function is used for downloading files and putting them into the correct location
|
|
||||||
prepare() {
|
|
||||||
wget "$DOWNLOAD"
|
|
||||||
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
|
|
||||||
}
|
|
||||||
|
|
||||||
# The build function is executed in the source directory
|
# The build function is executed in the source directory
|
||||||
# This function is used to compile the source code
|
# This function is used to compile the source code
|
||||||
build() {
|
build() {
|
||||||
@@ -26,6 +16,9 @@ build() {
|
|||||||
package_cups() {
|
package_cups() {
|
||||||
make DESTDIR="$BPM_OUTPUT" install-data install-exec
|
make DESTDIR="$BPM_OUTPUT" install-data install-exec
|
||||||
|
|
||||||
|
# Remove /run directory
|
||||||
|
rm -rf "$BPM_OUTPUT"/run
|
||||||
|
|
||||||
# Remove program that is installed by libcups
|
# Remove program that is installed by libcups
|
||||||
rm "$BPM_OUTPUT"/usr/bin/cups-config
|
rm "$BPM_OUTPUT"/usr/bin/cups-config
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user