summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaleb Jamison2018-06-10 07:42:48 -0500
committerCaleb Jamison2018-06-10 07:42:48 -0500
commit907ebe811a7e8db2949ac09ea93ea1f129359daa (patch)
tree0cc41cd1f38ab98d2eadc8f3a7949a8969d5358c
downloadaur-907ebe811a7e8db2949ac09ea93ea1f129359daa.tar.gz
PKGBUILD and .SRCINFO for LiteSDCard
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD37
2 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..912327132c1
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = litesdcard-git
+ pkgdesc = A small footprint and configurable SDCard core
+ pkgver = 188
+ pkgrel = 1
+ url = https://github.com/enjoy-digital/litesdcard
+ arch = any
+ license = MIT
+ depends = python
+ depends = migen
+ depends = litex
+ provides = litesdcard
+ options = !emptydirs
+ source = git+https://github.com/enjoy-digital/litesdcard
+ sha256sums = SKIP
+
+pkgname = litesdcard-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..632dafbdc6f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Caleb Jamison <cbjamo@gmail.com>
+pkgname=litesdcard-git
+pkgver=188
+pkgrel=1
+pkgdesc="A small footprint and configurable SDCard core"
+arch=(any)
+url="https://github.com/enjoy-digital/litesdcard"
+license=('MIT')
+groups=()
+depends=('python' 'migen' 'litex')
+provides=('litesdcard')
+options=(!emptydirs)
+install=
+source=("git+https://github.com/enjoy-digital/litesdcard")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "${srcdir}/${pkgname%%-git}"
+ git rev-list --count HEAD
+}
+
+prepare() {
+ cd "${srcdir}/${pkgname%%-git}"
+ rm -rf test/__init__.py
+ rm -rf example_designs/__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
+}
+