summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorHendrikto2018-01-08 00:19:31 +0100
committerHendrikto2018-01-08 00:19:31 +0100
commitab7ec220c1556eb502d6c8b51394fbce071b8c7d (patch)
tree7caaaf65676ec673719a44048f087084b9f4916f
parent535c05022a77a1808b2d2206a665b98b94aface4 (diff)
downloadaur-ab7ec220c1556eb502d6c8b51394fbce071b8c7d.tar.gz
Build directly from git repo
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD12
2 files changed, 12 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index d2b43cc5bf33..cc004f37198a 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -5,8 +5,9 @@ pkgbase = backlight_control
url = https://github.com/Hendrikto/backlight_control
arch = x86_64
license = MIT
- source = backlight_control-1.1.tar.gz::https://github.com/Hendrikto/backlight_control/archive/1.1.tar.gz
- md5sums = e233b7a0785fe3074f598e5b99b867d6
+ makedepends = git
+ source = backlight_control-1.1::git+https://github.com/Hendrikto/backlight_control.git
+ sha256sums = SKIP
pkgname = backlight_control
diff --git a/PKGBUILD b/PKGBUILD
index d4617956be92..76ada1968362 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,13 +2,19 @@
pkgname=backlight_control
pkgver=1.1
-pkgrel=1
+pkgrel=2
pkgdesc='Simple backlight brightness control'
arch=('x86_64')
url='https://github.com/Hendrikto/backlight_control'
license=('MIT')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/Hendrikto/backlight_control/archive/$pkgver.tar.gz")
-md5sums=('e233b7a0785fe3074f598e5b99b867d6')
+makedepends=('git')
+source=("$pkgname-$pkgver::git+https://github.com/Hendrikto/backlight_control.git")
+sha256sums=('SKIP')
+
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver"
+ git checkout $pkgver
+}
build() {
cd "$srcdir/$pkgname-$pkgver"