* add yasm

This commit is contained in:
Alexander Baldeck 2025-02-19 10:58:53 +01:00
parent f760ce0340
commit 87fd6976a1
2 changed files with 55 additions and 0 deletions

21
yasm/.SRCINFO Normal file
View File

@ -0,0 +1,21 @@
pkgbase = yasm
pkgdesc = A rewrite of NASM to allow for multiple syntax supported (NASM, TASM, GAS, etc.)
pkgver = 1.3.0
pkgrel = 7
url = https://www.tortall.net/projects/yasm/
arch = x86_64
arch = powerpc64le
arch = powerpc64
arch = powerpc
arch = riscv64
license = BSD
license = GPL2
license = LGPL2.1
license = PerlArtistic
checkdepends = systemd
depends = glibc
options = staticlibs
source = https://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz
sha256sums = 3dce6601b495f5b3d45b59f7d2492a340ee7e84b5beca17e48f862502bd5603f
pkgname = yasm

34
yasm/PKGBUILD Normal file
View File

@ -0,0 +1,34 @@
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Eric Bélanger <eric@archlinux.org>
pkgname=yasm
pkgver=1.3.0
pkgrel=7
pkgdesc="A rewrite of NASM to allow for multiple syntax supported (NASM, TASM, GAS, etc.)"
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
url="https://www.tortall.net/projects/yasm/"
license=('BSD' 'GPL2' 'LGPL2.1' 'PerlArtistic')
depends=('glibc')
checkdepends=('systemd')
options=('staticlibs')
source=(https://www.tortall.net/projects/yasm/releases/${pkgname}-${pkgver}.tar.gz)
sha256sums=('3dce6601b495f5b3d45b59f7d2492a340ee7e84b5beca17e48f862502bd5603f')
build() {
cd ${pkgname}-${pkgver}
CFLAGS+=' -ffat-lto-objects' \
./configure --prefix=/usr --build=${CHOST}
make
}
check() {
cd ${pkgname}-${pkgver}
make check -j1
}
package() {
cd ${pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install
install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 BSD.txt "${pkgdir}/usr/share/licenses/${pkgname}/BSD.txt"
}