diff options
author | Daniel Milewski <niitotantei@riseup.net> | 2015-01-28 20:42:22 +0100 |
---|---|---|
committer | Daniel Milewski <niitotantei@riseup.net> | 2015-01-28 20:42:22 +0100 |
commit | cc8b193003edbf40ff7372c6a86550c28364700f (patch) | |
tree | 8cc81b575cb5f2f9b363b864e13d28877cc4e288 /pcr/smartypants | |
parent | e711794db4c0736cddf7e45fb4408f79fa93d765 (diff) | |
download | abslibre-cc8b193003edbf40ff7372c6a86550c28364700f.tar.gz abslibre-cc8b193003edbf40ff7372c6a86550c28364700f.tar.bz2 abslibre-cc8b193003edbf40ff7372c6a86550c28364700f.zip |
smartypants: add new package to [pcr]
Diffstat (limited to 'pcr/smartypants')
-rw-r--r-- | pcr/smartypants/PKGBUILD | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pcr/smartypants/PKGBUILD b/pcr/smartypants/PKGBUILD new file mode 100644 index 000000000..5f7f42d6d --- /dev/null +++ b/pcr/smartypants/PKGBUILD @@ -0,0 +1,30 @@ +# Contributor: Daniel Milewski <niitotantei@riseup.net> + +pkgname=smartypants +pkgver=1.5.1 +pkgrel=1 +pkgdesc='Smart punctuation for web sites' +arch=(any) +url=http://daringfireball.net/projects/smartypants/ +license=(BSD) +depends=(perl) +makedepends=(unzip) +source=(http://daringfireball.net/projects/downloads/SmartyPants_$pkgver.zip) +sha256sums=(2813a12d8dd23f091399195edd7965e130103e439e2a14f298b75b253616d531) + +build() +{ + cd "$srcdir/SmartyPants_$pkgver" + + pod2man SmartyPants.pl > smartypants.1 + sed -n '/^Copyright (c)/,/damage\./p' 'SmartyPants Readme.txt' > LICENSE +} + +package() +{ + cd "$srcdir/SmartyPants_$pkgver" + + install -Dm 755 SmartyPants.pl "$pkgdir/usr/bin/smartypants" + install -Dm 644 smartypants.1 "$pkgdir/usr/share/man/man1/smartypants.1" + install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} |