diff options
author | tdy | 2017-02-01 06:15:19 -0600 |
---|---|---|
committer | tdy | 2017-02-01 06:15:19 -0600 |
commit | e840ef78694c261d1c2313005ac3922023c8c61d (patch) | |
tree | cff81c20593d30c83f79b5a2e22575cc0e9dec88 /PKGBUILD | |
download | aur-circos-tools.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..6d061499361b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: archlinux.info:tdy + +pkgname=circos-tools +pkgver=0.22 +pkgrel=1 +pkgdesc="Circos addon scripts for common data reduction and analysis tasks" +arch=(any) +url=http://circos.ca +license=(GPL) +depends=(circos) +source=(http://circos.ca/distribution/$pkgname-$pkgver.tgz) +noextract=($pkgname-$pkgver.tgz) +sha256sums=(d0709b08229803d6da58d8761fa86f5a091c32f3fe43dd22f6fadabf4e638b83) + +package() { + # install + bsdtar -xf $pkgname-$pkgver.tgz -C "$pkgdir" \ + -s ":^$pkgname-$pkgver:opt/${pkgname%-*}:" $pkgname-$pkgver/tools + bsdtar -xf $pkgname-$pkgver.tgz -C "$pkgdir" \ + -s ":^$pkgname-$pkgver:usr/share/doc/${pkgname%-*}:" $pkgname-$pkgver/README.tools + + # sanitize + find "$pkgdir" -exec sh -c \ + "file '{}' | grep -qE 'ELF|executable|directory' && chmod 755 '{}' || chmod 644 '{}'" \; + chown -R root:root "$pkgdir" +} |