diff options
author | Vlad Pirlog | 2024-05-05 17:42:25 +0300 |
---|---|---|
committer | Vlad Pirlog | 2024-05-05 17:42:25 +0300 |
commit | 338abd0b8b9494e119323e7cf6212e6f244984de (patch) | |
tree | 7f4b69d2e875456235c12a967ff6db7d3b5699f5 /PKGBUILD | |
parent | 7beb2dbea9a17b214c564230632cfd170f069c46 (diff) | |
download | aur-illuminanced-git.tar.gz |
Rename source repo directory to use package name
Upgrade GPLv3 SPDX license identifier
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 28 |
1 files changed, 14 insertions, 14 deletions
@@ -1,19 +1,17 @@ # Maintainer: Vlad Pirlog <(firstname) at (lastname) dot com> pkgname=illuminanced-git -pkgver='r19.c1ebdc7' +pkgver=r20.054d068 pkgrel=1 pkgdesc='Ambient Light Sensor Daemon for Linux' -license=('GPL3') +license=('GPL-3.0-or-later') arch=('i686' 'x86_64') url='https://github.com/mikhail-m1/illuminanced' -source=( - "git+$url" - 'fix-service-and-configuration.patch') -b2sums=( - 'SKIP' - '99c90c09003affb481ba3037091011197cccd7f40f80804faa67d30f955da0c5f32d3557cff49e7fb1438c2d6c621d81d5de43d1059c6637a18f7f220db68f4b') +source=("${pkgname}::git+https://github.com/mikhail-m1/illuminanced" + 'fix-service-and-configuration.patch') +b2sums=('SKIP' + '99c90c09003affb481ba3037091011197cccd7f40f80804faa67d30f955da0c5f32d3557cff49e7fb1438c2d6c621d81d5de43d1059c6637a18f7f220db68f4b') backup=('etc/illuminanced.toml') @@ -24,25 +22,27 @@ makedepends=('git' 'rust') depends=('glibc' 'gcc-libs') pkgver() { - cd "$srcdir/illuminanced" + cd "${pkgname}" printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)" } prepare () { - cd "$srcdir/illuminanced" + cd "${pkgname}" patch -p1 -i "$srcdir/fix-service-and-configuration.patch" } build () { - cd "$srcdir/illuminanced" + cd "${pkgname}" cargo build --release } package () { - install -Dm755 "$srcdir/illuminanced/target/release/illuminanced" -t "$pkgdir/usr/bin/" - install -Dm644 "$srcdir/illuminanced/illuminanced.toml" -t "$pkgdir/etc/" - install -Dm644 "$srcdir/illuminanced/illuminanced.service" -t "$pkgdir/usr/lib/systemd/system/" + cd "${pkgname}" + + install -Dm755 target/release/illuminanced -t "$pkgdir/usr/bin/" + install -Dm644 illuminanced.toml -t "$pkgdir/etc/" + install -Dm644 illuminanced.service -t "$pkgdir/usr/lib/systemd/system/" } |