Change installation prefix to /usr
This commit is contained in:
@@ -1,9 +1,11 @@
|
|||||||
name: dmidecode
|
name: dmidecode
|
||||||
description: Reports information about your system's hardware as described in your system BIOS according to the SMBIOS/DMI standard
|
description: Reports information about your system's hardware as described in your system BIOS according to the SMBIOS/DMI standard
|
||||||
version: "3.7"
|
version: "3.7"
|
||||||
revision: 1
|
revision: 2
|
||||||
url: https://www.nongnu.org/dmidecode/
|
url: https://www.nongnu.org/dmidecode/
|
||||||
license: GPL2-or-later
|
license: GPL2-or-later
|
||||||
|
maintainers:
|
||||||
|
- [email protected]
|
||||||
architecture: any
|
architecture: any
|
||||||
type: source
|
type: source
|
||||||
depends:
|
depends:
|
||||||
|
|||||||
@@ -5,13 +5,13 @@
|
|||||||
# 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() {
|
||||||
make CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS"
|
make prefix=/usr CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS"
|
||||||
}
|
}
|
||||||
|
|
||||||
# The package function is executed in the source directory
|
# The package function is executed in the source directory
|
||||||
# This function is used to move the compiled files into the output directory
|
# This function is used to move the compiled files into the output directory
|
||||||
package() {
|
package() {
|
||||||
make DESTDIR="$BPM_OUTPUT" install
|
make prefix=/usr DESTDIR="$BPM_OUTPUT" install
|
||||||
|
|
||||||
# Install package license
|
# Install package license
|
||||||
install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/dmidecode/LICENSE
|
install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/dmidecode/LICENSE
|
||||||
|
|||||||
Reference in New Issue
Block a user