diff --git a/pkg.info b/pkg.info index dcdbd73..a9e0350 100644 --- a/pkg.info +++ b/pkg.info @@ -1,6 +1,6 @@ name: stormfetch description: A simple linux fetch program written in go and bash -version: "7.4" +version: "8.0" revision: 1 url: https://github.com/EnumeratedDev/stormfetch license: MIT @@ -11,19 +11,24 @@ type: source keep: - etc/stormfetch/config.yml depends: - - libglvnd - - libxcursor - - libxi - - libxinerama - - libxrandr - - sh + - bash make_depends: - - git - golang - libx11 - - make + - libxcursor + - libxrandr + - libxinerama + - libxi + - libglvnd downloads: - url: https://github.com/EnumeratedDev/stormfetch/archive/refs/tags/${BPM_PKG_VERSION}.tar.gz extract_to: ${BPM_SOURCE} extract_strip_components: 1 - checksum: 32466846ec7ccad26460eed5823780a25c677a40eddd94e55c72e1c01f77703f + checksum: c379f0e86a36044580e912e8dc65b8e0a7b910c3455c295196f501e089688b21 +split_packages: + - name: stormfetch + optional_depends: + - stormfetch-monitor-detection:For detecting monitor resolution and refresh rate + - name: stormfetch-monitor-detection + depends: + - stormfetch diff --git a/source.sh b/source.sh index 114e307..2132c50 100644 --- a/source.sh +++ b/source.sh @@ -11,9 +11,16 @@ build() { # 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" PREFIX=/usr SYSCONFDIR=/etc install +package_stormfetch() { + make DESTDIR="$BPM_OUTPUT" PREFIX=/usr SYSCONFDIR=/etc install-stormfetch make DESTDIR="$BPM_OUTPUT" PREFIX=/usr SYSCONFDIR=/etc install-config install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/stormfetch/LICENSE } + +package_stormfetch-monitor-detection() { + make DESTDIR="$BPM_OUTPUT" PREFIX=/usr SYSCONFDIR=/etc install-stormfetch-monitor-detection + + install -d "$BPM_OUTPUT"/usr/share/licenses + ln -sf stormfetch "$BPM_OUTPUT"/usr/share/licenses/stormfetch-monitor-detection +}