diff options
author | Jonas DOREL | 2019-12-31 18:54:56 +0100 |
---|---|---|
committer | Jonas DOREL | 2019-12-31 18:57:37 +0100 |
commit | 64ebc16775f7b95ea042d5d0aefa00b47f25467c (patch) | |
tree | 18310abfc2daad229b40ae7a3ab8fc15297f9ed0 | |
download | aur-64ebc16775f7b95ea042d5d0aefa00b47f25467c.tar.gz |
Initial PKGBUILD
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 25 |
2 files changed, 40 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..c87d0c2f320e --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = systemd-timer-pacman-download-updates-git + pkgdesc = Systemd timer to download packages updates + pkgver = latest + pkgrel = 1 + url = https://gitlab.com/jdorel-archlinux/systemd-pacman-download-updates + arch = any + license = GPL + makedepends = git + depends = systemd-service-pacman-download-updates + provides = systemd-timer-pacman-download-updates + source = systemd-timer-pacman-download-updates-git::git+https://gitlab.com/jdorel-archlinux/systemd-pacman-download-updates + md5sums = SKIP + +pkgname = systemd-timer-pacman-download-updates-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..26c2fa5fa3f2 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,25 @@ +# Maintainer: Jonas DOREL <jonas at dorel dot me> +pkgname=systemd-timer-pacman-download-updates-git +pkgver=latest +pkgrel=1 +pkgdesc="Systemd timer to download packages updates" +arch=('any') +url="https://gitlab.com/jdorel-archlinux/systemd-pacman-download-updates" +license=('GPL') +depends=('systemd-service-pacman-download-updates') +makedepends=('git') +provides=('systemd-timer-pacman-download-updates') +source=("${pkgname}::git+https://gitlab.com/jdorel-archlinux/systemd-pacman-download-updates") +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/$pkgname" + #printf "latest" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +package() { + cd "$pkgname" + + install -Dm 644 pacman-download-updates.timer "$pkgdir/usr/lib/systemd/system/pacman-download-updates.timer" +} |