updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / par2cmdline / PKGBUILD
blobfcc3d50227e55440a1bc2b14d075e6d27d298b7f
1 # Maintainer: BlackEagle < ike DOT devolder AT gmail DOT com >
2 pkgname=par2cmdline
3 pkgver=0.4
4 pkgrel=18
5 pkgdesc="Providing a tool to apply the data-recovery capability concepts of RAID-like systems to the posting & recovery of multi-part archives on Usenet."
6 url="http://sourceforge.net/projects/parchive/"
7 license="GPL"
8 depends=('gcc-libs')
9 makedepends=()
10 arch=('i686' 'x86_64')
11 source=(
12         "http://downloads.sourceforge.net/sourceforge/parchive/${pkgname}-${pkgver}.tar.gz"
13         "01-Use-_stati64-under-WIN32-to-get-file-size.patch"
14         "02-Report-empty-files-when-verifying.patch"
15         "03-Correct-error-in-Par2CreatorSourceFile-UpdateHashes-.patch"
16         "04-offset-must-always-be-updated-even-when-progress-is-.patch"
17         "05-When-a-file-is-specified-to-be-scanned-but-it-dooen-.patch"
18         "06-Introduced-conditional-compilation-to-speed-up-thing.patch"
19         "07-Optimization-by-inlining.patch"
20         "08-Allowing-commandline-passing-of-files.patch"
21         "09-Fixing-processing-of-the-first-file-parameter-the-ou.patch"
22         "10-Pack-and-simplify-MD5Hash.patch"
23         "11-Use-autogenerated-methods-in-letype.patch"
24         "12-Fix-headers-in-par2cmdline.h.patch"
25         "13-hardlinks.patch"
26         "14-fixes-stupid-warnings.patch"
28 sha256sums=(
29         '9e32b7dbcf7bca8249f98824757d4868714156fe2276516504cd26f736e9f677'
30         'ece2cacec41d820d697e8fb5838b39e5ea1be1ced2a4cbe93d739a05a94db33a'
31         'd4976200ea20b44d0efbc8225ed510157a59b921b710a9cf353052df8f7d2175'
32         '1024c6dbfc7b8993a683c28a91d156552190ae33c925b217864ea874c8135eeb'
33         'f6e6c1bb8fbc6eb40947dbc9f14fcf4856de840fa970d3482900408d9aaa2f43'
34         '00efeff75f8a8cf61d47763b9a86ba92c68a7201d1ec50915830802b08f466e2'
35         'a472bc0321cde509d0bfe1d0887a3209ba4997673d7e5a49c31cf225546da802'
36         'ff9aba8c2b5e5050f811e11331637241db2fed48c2bbf5a34c970b70d45b6179'
37         '3076b42f152c447a24f119b5586ef702a994efa6f4fbb3a3a51d1122effef435'
38         '4e5c70345b1bd40019c58c0f334a76d9ece5bbb3cd08e1fb1a16b614c8e2e0cb'
39         '4f562411d3d431af99560789cfd69f4d6c72ca82986d4999f8ab7e6c0db7f912'
40         '3b7c0644143b6498ca21cb6b892b645346092f79aa5d0bc0e56fbd6181eb2e31'
41         '13ce51e827cd6c959a6cd92322e79df26e59f4177d831530239be491b8ffc9ff'
42         'a1f6f551acf5d05f2173d6ac328a30044f2af2f2f15e87547e69fad5250a2653'
43         '0c2413f0d1c024127063b5cbb0a403fe12555ec820190f7981db4a5a82be7b62'
46 build() {
47         cd ${pkgname}-${pkgver}
48         for patch in ${startdir}/[0-9][0-9]*.patch; do
49                 msg ${patch}
50                 patch -Np1 -i ${patch}
51         done
52         msg "remove old files"
53         rm -f Makefile.in \
54                 aclocal.m4 \
55                 config.guess \
56                 config.h.in \
57                 config.sub \
58                 configure \
59                 depcomp \
60                 install-sh \
61                 missing \
62                 mkinstalldirs
63         msg "run autotools stuff"
64         aclocal --force
65         autoconf --force
66         autoheader --force
67         automake --foreign --add-missing --copy --force-missing
68         msg "Configure"
69         ./configure --prefix=/usr
70         msg "Make"
71         make
74 package() {
75         cd ${pkgname}-${pkgver}
76         make DESTDIR=$startdir/pkg install