summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaleb Jamison2018-06-10 07:29:25 -0500
committerCaleb Jamison2018-06-10 07:29:25 -0500
commit9fae5e9d0c01f4e235e7d900f4754ed024678899 (patch)
tree1afb2b301aee95ffa5b11fe1770501856b0bc5a9
downloadaur-9fae5e9d0c01f4e235e7d900f4754ed024678899.tar.gz
PKGBUILD and .SRCINFO for LiteDRAM-git
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD36
2 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..fe3058b4428
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = litedram-git
+ pkgdesc = A small footprint and configurable DRAM core
+ pkgver = 181
+ pkgrel = 1
+ url = https://github.com/enjoy-digital/litedram
+ arch = any
+ license = MIT
+ depends = python
+ depends = migen
+ depends = litex
+ provides = litedram
+ options = !emptydirs
+ source = git+https://github.com/enjoy-digital/litedram
+ sha256sums = SKIP
+
+pkgname = litedram-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..1c01e58765b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Caleb Jamison <cbjamo@gmail.com>
+pkgname=litedram-git
+pkgver=181
+pkgrel=1
+pkgdesc="A small footprint and configurable DRAM core"
+arch=(any)
+url="https://github.com/enjoy-digital/litedram"
+license=('MIT')
+groups=()
+depends=('python' 'migen' 'litex')
+provides=('litedram')
+options=(!emptydirs)
+install=
+source=("git+https://github.com/enjoy-digital/litedram")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "${srcdir}/${pkgname%%-git}"
+ git rev-list --count HEAD
+}
+
+prepare() {
+ cd "${srcdir}/${pkgname%%-git}"
+ rm -rf test/__init__.py
+}
+
+build() {
+ cd "${srcdir}/${pkgname%%-git}"
+ python setup.py build
+}
+
+package() {
+ cd "${srcdir}/${pkgname%%-git}"
+ python setup.py install --root="$pkgdir/" --skip-build --optimize=1
+}
+