diff options
Diffstat (limited to 'community/libx86emu/PKGBUILD')
-rw-r--r-- | community/libx86emu/PKGBUILD | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/community/libx86emu/PKGBUILD b/community/libx86emu/PKGBUILD index 63ac2ba2b..9602b8aee 100644 --- a/community/libx86emu/PKGBUILD +++ b/community/libx86emu/PKGBUILD @@ -1,30 +1,33 @@ -# $Id: PKGBUILD 104103 2014-01-15 17:01:05Z arodseth $ +# $Id: PKGBUILD 107049 2014-03-11 19:41:14Z arodseth $ # Maintainer: Alexander Rødseth <rodseth@gmail.com> # Contributor: Kaiting Chen <kaitocracy@gmail.com> # Contributor: Gergely Imreh <imrehgATgmailDOTcom> pkgname=libx86emu -pkgver=1.1 -_pkgver=$pkgver-21.4 -pkgrel=30 +pkgver=1.1.21.5 +pkgrel=1 pkgdesc='x86 emulation library' arch=('x86_64' 'i686') url='http://download.opensuse.org/source/factory/repo/oss/suse/src/' license=('BSD') depends=('glibc') makedepends=('rpmextract') -source=("http://download.opensuse.org/source/factory/repo/oss/suse/src/$pkgname-$_pkgver.src.rpm") -sha256sums=('d94a9b2e00e995856bf71a1db8d97ba2a622d3f447248f53cd4e175d491c6a1b') +source=("http://download.opensuse.org/source/factory/repo/oss/suse/src/$pkgname-${pkgver%.*.*}-${pkgver#*.*.}.src.rpm") +sha256sums=('d639b118788e1fb880f96a12548e434b210a3eb47b850b9162f2e682b824c03f') + +prepare() { + # Wish they would just provide a normal $pkgname-$pkgver.tar.gz... + rpmextract.sh "${pkgname}-${pkgver%.*.*}-${pkgver#*.*.}.src.rpm" + tar jxf "$pkgname-${pkgver%.*.*}.tar.bz2" +} build() { - rpmextract.sh "${pkgname}-${_pkgver}.src.rpm" - tar jxvf "$pkgname-$pkgver.tar.bz2" - make -C "$pkgname-$pkgver" LIBDIR=/usr/lib + make -C "$pkgname-${pkgver%.*.*}" LIBDIR=/usr/lib } package() { - make -C "$pkgname-$pkgver" LIBDIR=/usr/lib DESTDIR="$pkgdir" install - install -Dm644 "$pkgname-$pkgver/LICENSE" \ + make -C "$pkgname-${pkgver%.*.*}" LIBDIR=/usr/lib DESTDIR="$pkgdir" install + install -Dm644 "$pkgname-${pkgver%.*.*}/LICENSE" \ "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } |