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