blob: 5a6efc35555c2b80e3171e241bd46e2414442c43 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Maintainer: Hekuran Gashi <hekurangashi@pm.me>
# Contributor: Brandon 'Inco' Little <drinco@posteo.net>
pkgname=ssg
pkgver=6
pkgrel=2
pkgdesc='static site generator written on POSIX shell'
url='https://www.romanzolotarev.com'
license=('ISC')
arch=('any')
depends=('sh' 'cpio')
optdepends=('lowdown: better/advanced HTML translation (than the included Markdown.pl)')
provides=('ssg')
conflicts=('ssg5' 'ssg6' 'ssg7')
source=("${url}/bin/${pkgname}${pkgver}"
"${url}/bin/Markdown.pl")
sha1sums=("5e862a1bce0c1a5bd9d41a3c1e9ac29707f3bd4a"
"3ff20882221ba2ea73fc11e640ee0c4e1fb39bbf")
build() {
cd "$srcdir/$distdir"
sed -n '/https:\/\/rgz.ee\/bin/,/OF THIS SOFTWARE./p' "${pkgname}${pkgver}" | sed -e 's/# //' -e 's/#//' > LICENSE
}
package() {
cd "$srcdir/$distdir"
install -d "$pkgdir"/usr/bin/
install -d "$pkgdir"/usr/share/licenses/$pkgname
install -m755 "${pkgname}${pkgver}" "$pkgdir"/usr/bin/"${pkgname}"
install -m755 Markdown.pl "$pkgdir"/usr/bin/Markdown.pl
install -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
# vim: ts=4 sw=4
|