archrelease: copy trunk to community-any
[ArchLinux/community.git] / unarj / trunk / PKGBUILD
blob54733918011353218be7ccee9b423834543940bb
1 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
2 # Contributor: Sergej Pupykin <pupykin.s+arch@gmail.co>
3 # Contributor: dale <dale@archlinux.org>
4 # Contributor: Tom Newsom <Jeepster@gmx.co.uk>
6 pkgname=unarj
7 pkgver=2.65
8 pkgrel=1
9 pkgdesc='Utility to extract, test and view the contents of archives created with the ARJ archiver'
10 url='http://www.arjsoftware.com/'
11 arch=('x86_64')
12 license=('custom')
13 depends=('glibc')
14 source=("https://src.fedoraproject.org/repo/pkgs/${pkgname}/${pkgname}-${pkgver}.tar.gz/c6fe45db1741f97155c7def322aa74aa/${pkgname}-${pkgver}.tar.gz"
15         'LICENSE')
16 sha512sums=('747bdc940fcb8ac28207a90cec8011deb93fe26064a44c94de44d7dfc82cb1cc6db2d1a648af3626283fc4f5d608ec312900455827fd1b7835ccfb89e71a7ac7'
17             '89a2a8ed1bfbbb30ed32a55b30a5d98c1f58233603de1c1c1a6756bdae1258e810f2d0f386961bee606c31e38558dda4868c522c0c60c5ce0061ab31a97f29cb')
19 prepare() {
20   cd "${pkgname}-${pkgver}"
21   sed 's|CFLAGS =|CFLAGS +=|' -i Makefile
22   sed 's|-o unarj|$(LDFLAGS) -o unarj|' -i Makefile
25 build() {
26   cd "${pkgname}-${pkgver}"
27   make
30 package() {
31   cd "${pkgname}-${pkgver}"
32   install -Dm 755 unarj -t "${pkgdir}/usr/bin"
33   install -Dm 644 *.txt -t "${pkgdir}/usr/share/doc/${pkgname}"
34   install -Dm 644 ../LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
37 # vim: ts=2 sw=2 et: