Add yams package.
This commit is contained in:
parent
79d86b15a6
commit
408a61ac65
62
yasm/PKGBUILD
Normal file
62
yasm/PKGBUILD
Normal file
@ -0,0 +1,62 @@
|
||||
# Maintainer: Alexey Pavlov <alexpux@gmail.com>
|
||||
|
||||
pkgname=('yasm' 'yasm-devel')
|
||||
pkgver=1.2.0
|
||||
pkgrel=1
|
||||
pkgdesc="A rewrite of NASM to allow for multiple syntax supported (NASM, TASM, GAS, etc.)"
|
||||
arch=('i686' 'x86_64')
|
||||
groups=('base-devel')
|
||||
url="http://www.tortall.net/projects/yasm/"
|
||||
license=('BSD' 'GPL2' 'LGPL2.1' 'PerlArtistic')
|
||||
options=('staticlibs')
|
||||
source=(http://www.tortall.net/projects/yasm/releases/${pkgname}-${pkgver}.tar.gz
|
||||
'yasm-1.2.0-1.src.patch'
|
||||
'update-config-sub-guess.patch')
|
||||
sha1sums=('773d28f27f83c44ac35079add0d3167ca6c1def8'
|
||||
'5a7dae77b2a1230e1d3a1123fcf63633d756c4d7'
|
||||
'340b4b26cecca8f04ec977506f80d772b0123adb')
|
||||
|
||||
prepare() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
patch -p1 -i ${srcdir}/update-config-sub-guess.patch
|
||||
patch -p2 -i ${srcdir}/yasm-1.2.0-1.src.patch
|
||||
|
||||
autoreconf -fi
|
||||
}
|
||||
|
||||
build() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
./configure --prefix=/usr --build=${CHOST}
|
||||
make
|
||||
}
|
||||
|
||||
setup() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
make DESTDIR="${destdir}" install
|
||||
|
||||
cp -f ${destdir}/usr/bin/ytasm.exe ${destdir}/usr/bin/tasm.exe
|
||||
|
||||
cp -f ${destdir}/usr/share/man/man1/ytasm.1 ${destdir}/usr/share/man/man1/tasm.1
|
||||
cp -f ${destdir}/usr/share/man/man1/ytasm.1 ${destdir}/usr/share/man/man1/vsyasm.1
|
||||
install -Dm644 COPYING "${destdir}/usr/share/licenses/yasm/LICENSE"
|
||||
install -Dm644 BSD.txt "${destdir}/usr/share/licenses/yasm/BSD.txt"
|
||||
}
|
||||
|
||||
check() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
make check
|
||||
}
|
||||
|
||||
package_yasm() {
|
||||
mkdir -p ${pkgdir}/usr
|
||||
|
||||
cp -rf ${destdir}/usr/bin ${pkgdir}/usr/
|
||||
cp -rf ${destdir}/usr/share ${pkgdir}/usr/
|
||||
}
|
||||
|
||||
package_yasm-devel() {
|
||||
mkdir -p ${pkgdir}/usr
|
||||
|
||||
cp -rf ${destdir}/usr/include ${pkgdir}/usr/
|
||||
cp -rf ${destdir}/usr/lib ${pkgdir}/usr/
|
||||
}
|
||||
2758
yasm/update-config-sub-guess.patch
Normal file
2758
yasm/update-config-sub-guess.patch
Normal file
File diff suppressed because it is too large
Load Diff
44
yasm/yasm-1.2.0-1.src.patch
Normal file
44
yasm/yasm-1.2.0-1.src.patch
Normal file
@ -0,0 +1,44 @@
|
||||
--- origsrc/yasm-1.2.0/Makefile.am 2011-10-31 07:11:27.000000000 +0000
|
||||
+++ src/yasm-1.2.0/Makefile.am 2012-10-10 22:23:26.875000000 +0100
|
||||
@@ -5,7 +5,7 @@ AM_YFLAGS = -d
|
||||
AM_CFLAGS = @MORE_CFLAGS@
|
||||
|
||||
bin_PROGRAMS =
|
||||
-dist_man_MANS =
|
||||
+dist_man_MANS = ytasm.1
|
||||
notrans_dist_man_MANS =
|
||||
TESTS =
|
||||
TESTS_ENVIRONMENT =
|
||||
--- origsrc/yasm-1.2.0/ytasm.1 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ src/yasm-1.2.0/ytasm.1 2012-10-10 22:23:26.890625000 +0100
|
||||
@@ -0,0 +1,30 @@
|
||||
+.\" Title: ytasm
|
||||
+.\" Author: Sam Hocevar <sho@debian.org>
|
||||
+.\" Date: July 2009
|
||||
+.\" Manual: TASM Frontend For The Yasm Modular Assembler
|
||||
+.\"
|
||||
+.TH "YTASM" "1" "July 2009" "Tasm" "TASM Frontend For The Yasm Modular Assembler"
|
||||
+.\" disable hyphenation
|
||||
+.nh
|
||||
+.\" disable justification (adjust text to left margin only)
|
||||
+.ad l
|
||||
+.SH "NAME"
|
||||
+ytasm \- TASM Frontend For The Yasm Modular Assembler
|
||||
+.SH "SYNOPSIS"
|
||||
+.HP 5
|
||||
+\fBytasm\fR [\fB\fIoptions\fR\fR] {\fIsource\fR} [,\fIobject\fR] [\fI,listing\fR] [\fI,xref\fR]
|
||||
+.HP 5
|
||||
+\fBytasm\fR \fB/h\fR
|
||||
+.SH "DESCRIPTION"
|
||||
+.PP
|
||||
+The Yasm Modular Assembler is a portable, retargetable assembler written under the
|
||||
+\(lqnew\(rq
|
||||
+(2 or 3 clause) BSD license. \fBytasm\fR is the TASM-compatible frontend.
|
||||
+.SH "SEE ALSO"
|
||||
+.PP
|
||||
+\fByasm\fR(1),
|
||||
+.PP
|
||||
+Related tools:
|
||||
+\fBas\fR(1),
|
||||
+\fBld\fR(1),
|
||||
+\fBnasm\fR(1)
|
||||
Loading…
x
Reference in New Issue
Block a user