-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
37c3066
commit f344a6d
Showing
7 changed files
with
172 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,8 @@ | |
/*.deb | ||
/*.rpm | ||
/*.txz | ||
/*.zst | ||
/*.sig | ||
/*.*.arm | ||
/*.*.exe | ||
/*.*.macos | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,63 @@ | ||
pkgname=notifiarr | ||
pkgver={{VERSION}} | ||
pkgrel={{Iter}} | ||
# Maintainer: David Newhall II <[email protected]> | ||
|
||
pkgname='notifiarr-bin' | ||
appname='notifiarr' | ||
pkgver='{{VERSION}}' | ||
pkgrel='{{Iter}}' | ||
pkgdesc='{{Desc}}' | ||
arch=('x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64' 'i686' 'pentium4') | ||
arch=('x86_64' 'armhf' 'armv7h' 'aarch64' 'i686' 'pentium4') | ||
url='https://notifiarr.com' | ||
license=('MIT') | ||
makedepends=('go' 'make') | ||
source=("notifiarr-${pkgver}.tar.gz::{{SOURCE_PATH}}") | ||
sha256sums=('{{SHA256}}') | ||
configfile='notifiarr.conf' | ||
backup=("etc/${pkgname}/${configfile}") | ||
install="${pkgname}.aur.install" | ||
backup=("etc/${appname}/${appname}.conf") | ||
|
||
build() { | ||
cd "$pkgname-$pkgver" | ||
make clean man generate VERSION="${pkgver}" ITERATION="${pkgrel}" | ||
|
||
if [ "$CARCH" == "x86_64" ]; then | ||
make linux VERSION="${pkgver}" ITERATION="${pkgrel}" | ||
mv "$pkgname.amd64.linux" "$pkgname" | ||
elif [ "$CARCH" == "arm" ] || [ "$CARCH" == "armv6h" ] || [ "$CARCH" == "armv7h" ]; then | ||
make armhf VERSION="${pkgver}" ITERATION="${pkgrel}" | ||
mv "$pkgname.armhf.linux" "$pkgname" | ||
elif [ "$CARCH" == "aarch64" ]; then | ||
make arm64 VERSION="${pkgver}" ITERATION="${pkgrel}" | ||
mv "$pkgname.arm64.linux" "$pkgname" | ||
elif [ "$CARCH" == "i686" ] || [ "$CARCH" == "pentium4" ]; then | ||
make linux386 VERSION="${pkgver}" ITERATION="${pkgrel}" | ||
mv "$pkgname.i386.linux" "$pkgname" | ||
fi | ||
} | ||
source=("${pkgname}-${pkgver}.tar.gz::https://codeload.github.com/Notifiarr/notifiarr/tar.gz/refs/tags/v${pkgver}") | ||
sha512sums=('{{SHA}}') | ||
|
||
check() { | ||
cd "$pkgname-$pkgver" | ||
go test ./... | ||
source_x86_64=("${pkgname}-${pkgver}.x86_64.gz::https://github.com/Notifiarr/notifiarr/releases/download/v${pkgver}/notifiarr.amd64.linux.gz") | ||
source_armhf=("${pkgname}-${pkgver}.armhf.gz::https://github.com/Notifiarr/notifiarr/releases/download/v${pkgver}/notifiarr.arm.linux.gz") | ||
source_armv7h=("${pkgname}-${pkgver}.armv7h.gz::https://github.com/Notifiarr/notifiarr/releases/download/v${pkgver}/notifiarr.arm.linux.gz") | ||
source_aarch64=("${pkgname}-${pkgver}.aarch64.gz::https://github.com/Notifiarr/notifiarr/releases/download/v${pkgver}/notifiarr.arm64.linux.gz") | ||
source_i686=("${pkgname}-${pkgver}.i686.gz::https://github.com/Notifiarr/notifiarr/releases/download/v${pkgver}/notifiarr.386.linux.gz") | ||
source_pentium4=("${pkgname}-${pkgver}.pentium4.gz::https://github.com/Notifiarr/notifiarr/releases/download/v${pkgver}/notifiarr.386.linux.gz") | ||
sha512sums_x86_64=('{{SHA_X64}}') | ||
sha512sums_armhf=('{{SHA_ARMHF}}') | ||
sha512sums_armv7h=('{{SHA_ARMHF}}') | ||
sha512sums_aarch64=('{{SHA_ARCH64}}') | ||
sha512sums_i686=('{{SHA_386}}') | ||
sha512sums_pentium4=('{{SHA_386}}') | ||
|
||
build() { | ||
cd "${appname}-${pkgver}" | ||
go run github.com/davidnewhall/[email protected] --manual "${appname}" --version "${pkgver}" --date "${DATE}" README.md | ||
go run github.com/davidnewhall/[email protected] --manual "${appname}" --version "${pkgver}" --date "${DATE}" examples/MANUAL.md | ||
gzip -9 examples/MANUAL | ||
mv examples/MANUAL.gz "${appname}.1.gz" | ||
} | ||
|
||
package() { | ||
cd "$pkgname-$pkgver" | ||
package() { | ||
# Binary. | ||
install -Dm755 "${pkgname}" "${pkgdir}/usr/bin/${pkgname}" | ||
install -D -m 755 "${pkgname}-${pkgver}.${CARCH}" "${pkgdir}/usr/bin/${appname}" | ||
|
||
cd "${appname}-${pkgver}" | ||
|
||
# Directories. | ||
install -dm0755 "${pkgdir}/usr/share/doc/${pkgname}" "${pkgdir}/usr/share/applications" \ | ||
"${pkgdir}/usr/share/licenses/${pkgname}" "${pkgdir}/etc/${pkgname}" | ||
# Man file. | ||
install -Dm644 "${pkgname}.1.gz" "${pkgdir}/usr/share/man/man1/${pkgname}.1.gz" | ||
# Config file, and example config file. | ||
install -m644 "examples/${configfile}.example" "${pkgdir}/etc/${pkgname}/${configfile}.example" | ||
install -m644 "examples/${configfile}.example" "${pkgdir}/etc/${pkgname}/${configfile}" | ||
# Extra documentation. | ||
install -m644 *.html examples/* pkg/bindata/files/images/logo/${pkgname}.png "${pkgdir}/usr/share/doc/${pkgname}/" | ||
install -d -m 775 "${pkgdir}/usr/share/"{licenses,doc}"/${appname}" "${pkgdir}/usr/share/applications" "${pkgdir}/etc/${appname}" | ||
|
||
# Install configuration file(s). | ||
install -D -m 644 "examples/${appname}.conf.example" "${pkgdir}/etc/${appname}/${appname}.conf" | ||
install -D -m 644 "examples/${appname}.conf.example" "${pkgdir}/etc/${appname}/${appname}.conf.example" | ||
|
||
# License, documentation, logo icon, manual. | ||
install -D -m 644 LICENSE "${pkgdir}/usr/share/licenses/${appname}/LICENSE" | ||
install -D -m 644 ./*.html examples/* pkg/bindata/files/images/logo/${appname}.png "${pkgdir}/usr/share/doc/${appname}/" | ||
install -D -m 644 "${appname}.1.gz" "${pkgdir}/usr/share/man/man1/${appname}.1.gz" | ||
|
||
# X11 Desktop File. | ||
install -m755 init/linux/deb/usr/share/applications/${pkgname}.desktop "${pkgdir}/usr/share/applications/" | ||
# License. | ||
install -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" | ||
# User and group. | ||
echo 'u notifiarr - "notifiarr.com client" -' > sysusers.conf | ||
install -Dm0644 "sysusers.conf" "${pkgdir}/usr/lib/sysusers.d/notifiarr.conf" | ||
rm sysusers.conf | ||
# Systemd Service Unit. | ||
install -Dm644 "init/systemd/${pkgname}.service" "${pkgdir}/usr/lib/systemd/system/${pkgname}.service" | ||
install -D -m 755 init/linux/deb/usr/share/applications/${appname}.desktop "${pkgdir}/usr/share/applications/" | ||
|
||
# Install the systemd service unit and system user account. | ||
install -D -m 644 "init/systemd/${appname}.service" "${pkgdir}/usr/lib/systemd/system/${appname}.service" | ||
echo "u ${appname} - \"${appname} daemon\"" > "${appname}.sysusers" | ||
install -D -m 644 "${appname}.sysusers" "${pkgdir}/usr/lib/sysusers.d/${appname}.conf" | ||
rm "${appname}.sysusers" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,29 @@ | ||
pkgbase = notifiarr | ||
pkgbase = notifiarr-bin | ||
pkgdesc = {{Desc}} | ||
pkgver = {{VERSION}} | ||
pkgrel = {{Iter}} | ||
url = https://notifiarr.com | ||
install = notifiarr.aur.install | ||
arch = x86_64 | ||
arch = arm | ||
arch = armv6h | ||
arch = armhf | ||
arch = armv7h | ||
arch = aarch64 | ||
arch = i686 | ||
arch = pentium4 | ||
license = MIT | ||
makedepends = go | ||
makedepends = make | ||
backup = etc/notifiarr/notifiarr.conf | ||
source = notifiarr-{{VERSION}}.tar.gz::{{SOURCE_PATH}} | ||
sha256sums = {{SHA256}} | ||
backup = etc/notifiarr-bin/notifiarr-bin.conf | ||
source = notifiarr-{{VERSION}}.tar.gz::https://codeload.github.com/Notifiarr/notifiarr/tar.gz/refs/tags/v{{VERSION}} | ||
sha256sums = {{SHA}} | ||
source_x86_64 = notifiarr-bin-{{VERSION}}.x86_64.gz::https://github.com/Notifiarr/notifiarr/releases/download/v{{VERSION}}/notifiarr.amd64.linux.gz | ||
sha512sums_x86_64 = {{SHA_X64}} | ||
source_armhf = notifiarr-bin-{{VERSION}}.armhf.gz::https://github.com/Notifiarr/notifiarr/releases/download/v{{VERSION}}/notifiarr.arm.linux.gz | ||
sha512sums_armhf = {{SHA_ARMHF}} | ||
source_armv7h = notifiarr-bin-{{VERSION}}.armv7h.gz::https://github.com/Notifiarr/notifiarr/releases/download/v{{VERSION}}/notifiarr.arm.linux.gz | ||
sha512sums_armv7h = {{SHA_ARMHF}} | ||
source_aarch64 = notifiarr-bin-{{VERSION}}.aarch64.gz::https://github.com/Notifiarr/notifiarr/releases/download/v{{VERSION}}/notifiarr.arm64.linux.gz | ||
sha512sums_aarch64 = {{SHA_ARCH64}} | ||
source_i686 = notifiarr-bin-{{VERSION}}.i686.gz::https://github.com/Notifiarr/notifiarr/releases/download/v{{VERSION}}/notifiarr.386.linux.gz | ||
sha512sums_i686 = {{SHA_386}} | ||
source_pentium4 = notifiarr-bin-{{VERSION}}.pentium4.gz::https://github.com/Notifiarr/notifiarr/releases/download/v{{VERSION}}/notifiarr.386.linux.gz | ||
sha512sums_pentium4 = {{SHA_386}} | ||
|
||
pkgname = notifiarr | ||
pkgname = notifiarr-bin |
Oops, something went wrong.