summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnatol Pomozov2018-03-03 10:24:52 -0800
committerAnatol Pomozov2018-03-03 10:30:58 -0800
commit44115fd39c7bc0441cb1b592d8eac81cf9c749ec (patch)
treefa51a2238e2892518f60c098fca378e978872ed0
downloadaur-44115fd39c7bc0441cb1b592d8eac81cf9c749ec.tar.gz
Add rootdev package
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD37
2 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e046fbcbb41
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+# Generated by mksrcinfo v8
+# Sat Mar 3 18:30:51 UTC 2018
+pkgbase = chromeos-rootdev-git
+ pkgdesc = ChromeOS version of rootdev tool
+ pkgver = r19.fc57068
+ pkgrel = 1
+ url = http://sites.google.com/a/google.com/chromeos-partner/hardware-control-and-debug
+ arch = i686
+ arch = x86_64
+ license = BSD
+ depends = glibc
+ source = git+https://chromium.googlesource.com/chromiumos/third_party/rootdev
+ sha1sums = SKIP
+
+pkgname = chromeos-rootdev-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..37ee4ea5d9a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Anatol Pomozov <anatol dot pomozov at gmail>
+
+pkgname=chromeos-rootdev-git
+pkgver=r19.fc57068
+pkgrel=1
+pkgdesc='ChromeOS version of rootdev tool'
+url='http://sites.google.com/a/google.com/chromeos-partner/hardware-control-and-debug'
+arch=(i686 x86_64)
+depends=(glibc)
+license=(BSD)
+source=(git+https://chromium.googlesource.com/chromiumos/third_party/rootdev)
+sha1sums=('SKIP')
+
+pkgver() {
+ cd rootdev
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd rootdev
+ sed 's/-Werror//' -i Makefile
+}
+
+build() {
+ cd rootdev
+ make
+}
+
+package() {
+ cd rootdev
+ install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -m755 -d "$pkgdir"/usr/{bin,lib}
+ install -m755 -t "$pkgdir/usr/bin" rootdev
+ install -m644 -t "$pkgdir/usr/lib" librootdev.so.1.0
+ ln -s /usr/lib/librootdev.so.1.0 $pkgdir/usr/lib/librootdev.so.1
+ ln -s /usr/lib/librootdev.so.1.0 $pkgdir/usr/lib/librootdev.so
+}