Skip to content

Instantly share code, notes, and snippets.

@graysky2
Created November 30, 2018 20:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save graysky2/5efb66ad5b38332f8ce8b5a762488bb8 to your computer and use it in GitHub Desktop.
Save graysky2/5efb66ad5b38332f8ce8b5a762488bb8 to your computer and use it in GitHub Desktop.
# Maintainer: David Manouchehri <manouchehri@riseup.net>
# Contributor: graysky <graysky AT archlinux DOT us>
# Contributor: Xan Manning <git@xan-manning.co.uk>
_gitname='alarm-fake-hwclock'
pkgname='fake-hwclock-git'
_gitbranch=master
_gitauthor=xanmanning
pkgver=v0.1b.r9.gee2d6c9
pkgrel=1
pkgdesc="Save/restore system clock on machines without working RTC hardware."
url="https://github.com/${_gitauthor}/${_gitname}"
license=('custom:Coffeeware')
source=("git://github.com/${_gitauthor}/${_gitname}#branch=${_gitbranch}")
sha512sums=('SKIP')
arch=('x86_64' 'armv5' 'armv6h' 'armv7h' 'aarch64')
makedepends=('git')
pkgver() {
cd "${_gitname}"
git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "${_gitname}"
make
}
package() {
cd "${_gitname}"
make DESTDIR="${pkgdir}" install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment