summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaylin2021-09-24 01:07:12 -0600
committerCaylin2021-09-24 01:07:12 -0600
commite7291821bf9308d05577fda2ddbb750e46d1e8ce (patch)
treef28da7e562cff3d3e63ad3619693735c5895fa11
downloadaur-tang-dynasty.tar.gz
Create package
-rw-r--r--.SRCINFO18
-rw-r--r--99-anlogic-jtag.rules4
-rw-r--r--PKGBUILD39
-rw-r--r--tang-dynasty.desktop10
-rw-r--r--tang-dynasty.pngbin0 -> 8776 bytes
5 files changed, 71 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..47c22cb762dc
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = tang-dynasty
+ pkgdesc = Tang Dynasty IDE for Anlogic FPGAs
+ pkgver = 5.0.3_30786
+ pkgrel = 1
+ url = http://www.anlogic.com/products.aspx?TypeId=11&FId=t3:11:3
+ arch = x86_64
+ license = custom
+ depends = udev
+ source = http://www.anlogic.com/Private/Files/9ae753f3da28495b9fa05521fa4ff1ee.zip
+ source = tang-dynasty.desktop
+ source = tang-dynasty.png
+ source = 99-anlogic-jtag.rules
+ sha256sums = bd60fcf6beb471480827b445658f79346ed65a0db548760b2264a3a5e26c7796
+ sha256sums = 40c810053bf8044eb20238ace006ff973622e6793e4ec339fdc571ae1399c203
+ sha256sums = c7518eb2fe0ebafbeadba36a80616892403e89338eb8392aedaeb24ecfbb6040
+ sha256sums = 622b5a78a83869def5dc5daf68b8ce44f20c9f83f16fccc2f94b02d928eeb813
+
+pkgname = tang-dynasty
diff --git a/99-anlogic-jtag.rules b/99-anlogic-jtag.rules
new file mode 100644
index 000000000000..a33ee7ee1900
--- /dev/null
+++ b/99-anlogic-jtag.rules
@@ -0,0 +1,4 @@
+SUBSYSTEMS=="usb", ATTRS{idVendor}=="0547", ATTRS{idProduct}=="1002", \
+ GROUP="plugdev", \
+ MODE="0660"
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..80a8d6f3b0b3
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,39 @@
+# Maintainer: Caylin <arch at timawesomeness dot com>
+pkgname=tang-dynasty
+pkgver='5.0.3_30786'
+pkgrel=1
+pkgdesc='Tang Dynasty IDE for Anlogic FPGAs'
+arch=('x86_64')
+url='http://www.anlogic.com/products.aspx?TypeId=11&FId=t3:11:3'
+license=('custom')
+depends=('udev')
+source=('http://www.anlogic.com/Private/Files/9ae753f3da28495b9fa05521fa4ff1ee.zip'
+ 'tang-dynasty.desktop'
+ 'tang-dynasty.png'
+ '99-anlogic-jtag.rules')
+sha256sums=('bd60fcf6beb471480827b445658f79346ed65a0db548760b2264a3a5e26c7796'
+ '40c810053bf8044eb20238ace006ff973622e6793e4ec339fdc571ae1399c203'
+ 'c7518eb2fe0ebafbeadba36a80616892403e89338eb8392aedaeb24ecfbb6040'
+ '622b5a78a83869def5dc5daf68b8ce44f20c9f83f16fccc2f94b02d928eeb813')
+
+package() {
+ cd "TD_${pkgver}_NL"
+
+ install -dm 755 "$pkgdir/usr/share/doc/$pkgname/"
+ mv doc/* "$pkgdir/usr/share/doc/$pkgname/"
+
+ install -dm 755 "$pkgdir/opt/$pkgname/"
+ mv * "$pkgdir/opt/$pkgname/"
+
+ install -dm 755 "$pkgdir/usr/bin/"
+ chmod 755 "$pkgdir/opt/$pkgname/bin/td"
+ echo "#!/bin/sh
+/opt/$pkgname/bin/td" '$@' > "$pkgdir/usr/bin/tang-dynasty"
+ chmod 755 "$pkgdir/usr/bin/tang-dynasty"
+
+ cd "$srcdir"
+ install -Dm 644 tang-dynasty.png -t "$pkgdir/usr/share/pixmaps/"
+ install -Dm 644 tang-dynasty.desktop -t "$pkgdir/usr/share/applications/"
+ install -Dm 644 99-anlogic-jtag.rules -t "$pkgdir/usr/lib/udev/rules.d/"
+}
+
diff --git a/tang-dynasty.desktop b/tang-dynasty.desktop
new file mode 100644
index 000000000000..c4598497b54d
--- /dev/null
+++ b/tang-dynasty.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=Tang Dynasty
+GenericName=FGPA IDE
+Comment=Tang Dynasty IDE for Anlogic FPGAs
+Type=Application
+Icon=tang-dynasty
+Exec=tang-dynasty -gui
+Terminal=false
+Categories=Development;IDE;
+StartupWMClass=td
diff --git a/tang-dynasty.png b/tang-dynasty.png
new file mode 100644
index 000000000000..ef4d134e84e7
--- /dev/null
+++ b/tang-dynasty.png
Binary files differ