Created
November 30, 2018 20:08
-
-
Save graysky2/5efb66ad5b38332f8ce8b5a762488bb8 to your computer and use it in GitHub Desktop.
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
# 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