summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO12
-rw-r--r--PKGBUILD26
2 files changed, 38 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f02dc9a5a13
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,12 @@
+pkgbase = ddi-bin
+ pkgdesc = A safer dd
+ pkgver = 1.0
+ pkgrel = 1
+ url = https://github.com/tralph3/ddi
+ arch = x86_64
+ license = GPL3
+ source = https://github.com/tralph3/ddi/releases/download/v1.0/ddi-v1.0-x86_64-linux.tar.gz
+ md5sums = SKIP
+
+pkgname = ddi-bin
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7816f8ec9e4
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,26 @@
+# Maintainer: Tomás Ralph <tomasralph2000@gmail.com>
+_pkgname=ddi
+pkgname=ddi-bin
+pkgver=1.0
+pkgrel=1
+pkgdesc="A safer dd"
+arch=(x86_64)
+url="https://github.com/tralph3/ddi"
+license=('GPL3')
+depends=()
+makedepends=()
+archivename="${_pkgname}-v${pkgver}-${arch}-linux"
+source=("https://github.com/tralph3/ddi/releases/download/v${pkgver}/${archivename}.tar.gz")
+md5sums=('SKIP')
+
+package() {
+
+ local docdir="$pkgdir/usr/share/doc/${_pkgname}"
+ local licdir="$pkgdir/usr/share/licenses/${_pkgname}"
+ local bindir="$pkgdir/usr/bin"
+
+ cd "${srcdir}"
+ install -Dm0644 --target-directory "$docdir" "README.md"
+ install -Dm0644 --target-directory "$licdir" "LICENSE"
+ install -Dm0755 --target-directory "$bindir" "ddi"
+}