diff options
author | tdy | 2017-02-01 06:15:47 -0600 |
---|---|---|
committer | tdy | 2017-02-01 06:15:47 -0600 |
commit | f205a846f10018ce160d9bb94927bd89aab3f8fc (patch) | |
tree | 7614acd5532a6935a86e6a4b2986bf3899f54cdc | |
download | aur-circos-docs.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 25 |
2 files changed, 39 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..42a085ec330a --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = circos-docs + pkgdesc = Circos tutorials + pkgver = 0.67 + pkgrel = 1 + url = http://circos.ca + arch = any + license = GPL + noextract = circos-tutorials-0.67.tgz + options = docs + source = http://circos.ca/distribution/circos-tutorials-0.67.tgz + sha256sums = 3ac7baa47fcbb73222f0045522e234c35b6788bfb9e99d8be96d76f53c51b2c7 + +pkgname = circos-docs + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..be41228fa98f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,25 @@ +# Maintainer: archlinux.info:tdy + +pkgname=circos-docs +pkgver=0.67 +pkgrel=1 +pkgdesc="Circos tutorials" +arch=(any) +url=http://circos.ca +license=(GPL) +options=(docs) +source=(http://circos.ca/distribution/${pkgname%-*}-tutorials-$pkgver.tgz) +noextract=(${pkgname%-*}-tutorials-$pkgver.tgz) +sha256sums=(3ac7baa47fcbb73222f0045522e234c35b6788bfb9e99d8be96d76f53c51b2c7) + +package() { + # install + bsdtar -xf ${pkgname%-*}-tutorials-$pkgver.tgz -C "$pkgdir" \ + -s ":^${pkgname%-*}-tutorials-$pkgver:usr/share/doc/${pkgname%-*}:" + + # sanitize + find "$pkgdir" -exec sh -c \ + "file '{}' | grep -qE 'ELF|executable|directory' && chmod 755 '{}' || chmod 644 '{}'" \; + chown -R root:root "$pkgdir" + sed -i '1c\#!/usr/bin/env perl' "$pkgdir"/usr/share/doc/${pkgname%-*}/tutorials/8/11/addidtolinks +} |