archrelease: copy trunk to community-any
[ArchLinux/community.git] / sc / trunk / PKGBUILD
blob836541aa5b91fd36af2ddec57cb935e6958276a7
1 # Maintainer: Jonathan Steel <jsteel at archlinux.org>
2 # Contributor: Ido Rosen <ido@kernel.org>
3 # Contributor: Army
4 # Contributor: Jay Tanzman <jay at jt512 dot dynddns dot ort>
5 # Contributor: Ray Kohler <ataraxia937 at gmail dot com>
7 pkgname=sc
8 pkgver=7.16
9 pkgrel=8
10 pkgdesc="Ncurses-based spreadsheet program"
11 arch=('x86_64')
12 url="https://ibiblio.org/pub/linux/apps/financial/spreadsheet/!INDEX.html"
13 license=('Public Domain')
14 depends=('ncurses')
15 source=(https://ibiblio.org/pub/linux/apps/financial/spreadsheet/$pkgname-$pkgver.tar.gz
16         https://launchpadlibrarian.net/1281150/${pkgname}_$pkgver-2.diff.gz)
17 sha256sums=('1997a00b6d82d189b65f6fd2a856a34992abc99e50d9ec463bbf1afb750d1765'
18             '37116b9619790564650c4090b4a6264c08aa59fa1e24c63ca073011cd70507cb')
20 build() {
21   cd $pkgname-$pkgver
23   patch -p1 -i "$srcdir"/${pkgname}_$pkgver-2.diff
25   make
26   make sc.1 psc.1
29 package() {
30   cd $pkgname-$pkgver
32   install -d "$pkgdir"/usr/bin "$pkgdir"/usr/share/doc/$pkgname \
33     "$pkgdir"/usr/share/man/man1 "$pkgdir"/usr/share/licenses/$pkgname
35   make prefix="$pkgdir"/usr MANDIR="$pkgdir"/usr/share/man/man1 install
37   echo "This program is in the public domain." > \
38     "$pkgdir"/usr/share/licenses/$pkgname/LICENSE