summaryrefslogtreecommitdiff
path: root/libre-testing/unace-libre/PKGBUILD
blob: 8708694c6695af1aa410bf00883876eba60e0ba9 (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
35
36
37
38
# Maintainer: Borgo
pkgname=unace-libre
_pkgname=unace
pkgver=1.2b
pkgrel=2
pkgdesc="Extract, view and test ACE 1.x archives"
arch=('i686' 'x86_64')
url="http://www.emerge.de/"
license=('GPL')
depends=()
provides=('unace')
conflicts=('unace')
replaces=('unace')
source=(ftp://ftp.debian.org/debian/pool/main/u/unace/$_pkgname\_$pkgver.orig.tar.gz
        ftp://ftp.debian.org/debian/pool/main/u/unace/$_pkgname\_$pkgver-7.diff.gz)
md5sums=('51360df61997db28787b60ea7321d83f'
         '9cd1e411ed0e77d024ff78585079a5a5') #generate with 'makepkg -g'

build() {
  cd "$srcdir/$_pkgname$pkgver"
  patch -p1 -i ../$_pkgname\_$pkgver-7.diff
  for p in $(<debian/patches/series)
  do
    patch -p1 -i debian/patches/$p
  done
  cp unix/makefile unix/gccmaked .
# assume little-endian, debian/test-endian.c is not used
  make dep
  make
}

package() {
  cd "$srcdir/$_pkgname$pkgver"
  install -Dm755 unace "$pkgdir/usr/bin/unace"
  install -Dm644 debian/unace.1 "$pkgdir/usr/share/man/man1/unace.1"
}

# vim:set ts=2 sw=2 et: