diff options
author | NeoTheFox | 2016-02-24 19:21:20 +0100 |
---|---|---|
committer | NeoTheFox | 2016-02-24 19:21:20 +0100 |
commit | c313abc8cee4fc590b695b22f2a2515972c0f017 (patch) | |
tree | 3db28c58812b06325617c3ae0bb63dff6907e80f /PKGBUILD | |
download | aur-c313abc8cee4fc590b695b22f2a2515972c0f017.tar.gz |
initial
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..65725677233e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,28 @@ +pkgname=3delta-git +pkgver=1 +pkgrel=1 +pkgdesc="Host software especially suited for delta 3d printers" +arch=('i686' 'x86_64') +url="https://github.com/minad/3delta" +license=('GPL') +depends=('tk' 'tcllib' 'tcl' 'tklib') +makedepends=('git') +conflicts=('3delta') +provides=('3delta') +# The git repo is detected by the 'git:' or 'git+' beginning. The branch +# '$pkgname' is then checked out upon cloning, expediating versioning: +#source=('git+https://github.com/falconindy/expac.git' +source=("$pkgname"::'https://github.com/minad/3delta.git') +# Because the sources are not static, skip Git checksum: +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/$pkgname" + # Use the tag of the last commit + git describe --long | sed -E 's/([^-]*-g)/r\1/;s/-/./g' +} + +package() { + cd "$srcdir/$pkgname" + install -Dm755 "3delta" "$pkgdir/usr/bin/3delta" +} |