summaryrefslogtreecommitdiff
path: root/community/libx86emu/PKGBUILD
blob: c9973fa49bb91f84f22827a9b816f4ccd57401c8 (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
# $Id: PKGBUILD 67396 2012-03-11 10:52:58Z lcarlier $
# Maintainer: Kaiting Chen <kaitocracy@gmail.com>
# Contributor: Gergely Imreh <imrehgATgmailDOTcom>

pkgname=libx86emu
pkgver=1.1
_pkgver=$pkgver-15.3
pkgrel=29
pkgdesc='x86 emulation library'
arch=('i686' 'x86_64' 'mips64el')
url='http://www.opensuse.org/'
license=('BSD')
depends=('glibc')
makedepends=('rpmextract')
source=("http://download.opensuse.org/source/factory/repo/oss/suse/src/$pkgname-$_pkgver.src.rpm")
md5sums=('ba6a0fc46307dd79078579140aab2f02')

build() {
  cd "${srcdir}"

  rpmextract.sh "${pkgname}-${_pkgver}.src.rpm"
  tar -xjf $pkgname-$pkgver.tar.bz2

  cd "${srcdir}/${pkgname}-${pkgver}"

  make LIBDIR=/usr/lib
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  make LIBDIR=/usr/lib DESTDIR=$pkgdir install

  install -Dm644 LICENSE \
  ${pkgdir}/usr/share/licenses/$pkgname/LICENSE
}