[arch-commits] Commit in fasm/repos (4 files)

Levente Polyak anthraxx at archlinux.org
Sun Mar 12 17:56:19 UTC 2017


    Date: Sunday, March 12, 2017 @ 17:56:19
  Author: anthraxx
Revision: 215844

archrelease: copy trunk to community-i686, community-x86_64

Added:
  fasm/repos/community-i686/
  fasm/repos/community-i686/PKGBUILD
    (from rev 215843, fasm/trunk/PKGBUILD)
  fasm/repos/community-x86_64/
  fasm/repos/community-x86_64/PKGBUILD
    (from rev 215843, fasm/trunk/PKGBUILD)

---------------------------+
 community-i686/PKGBUILD   |   56 ++++++++++++++++++++++++++++++++++++++++++++
 community-x86_64/PKGBUILD |   56 ++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 112 insertions(+)

Copied: fasm/repos/community-i686/PKGBUILD (from rev 215843, fasm/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD	                        (rev 0)
+++ community-i686/PKGBUILD	2017-03-12 17:56:19 UTC (rev 215844)
@@ -0,0 +1,56 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Chris Andrews <christophersimonandrews [at] gmail [dot] com>
+# Contributor: FadeMind <fademind at gmail.com>
+# Contributor: Serge Victor <arch at random.re>
+# Contributor: Krzysztof Wloch <wloszekk [at] gmail [dot] com>
+# Contributor: Luke McCarthy <luke at iogopro.co.uk>
+
+pkgname=fasm
+pkgver=1.71.60
+pkgrel=2
+pkgdesc='Fast and efficient self-assembling x86 assembler for DOS, Windows and Linux operating systems'
+url='https://flatassembler.net/'
+arch=('i686' 'x86_64')
+license=('custom')
+depends_x86_64=('lib32-glibc')
+source=(${pkgname}-${pkgver}.tgz::https://flatassembler.net/${pkgname}-${pkgver}.tgz)
+sha512sums=('6c31fd044a972cb694b84adbb2b18940d9256f12c4ad1acd466b2f9c99c3bc01bfa6daba434e480c7694be5a604809d5f0da8dc41ff09919f0a5f0dda9ad74b3')
+
+build() {
+  cd ${pkgname}
+  CFLAGS+=" -pie"
+
+  # compile fasm with itself
+  ./fasm source/libc/${pkgname}.asm
+  gcc -m32 ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -L/usr/lib32 source/libc/${pkgname}.o -o source/libc/${pkgname}
+
+  # tools
+  local s
+  for s in listing prepsrc symbols; do
+    ./source/libc/${pkgname} tools/libc/${s}.asm ${s}.o
+    gcc -m32 ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -o ${s} ${s}.o
+  done
+}
+
+package() {
+  cd ${pkgname}
+
+  install -Dm 755 source/libc/${pkgname} -t "${pkgdir}/usr/bin"
+  # tools
+  local s
+  for s in listing prepsrc symbols; do
+    install -Dm 755 ${s} "${pkgdir}/usr/bin/${pkgname}-${s}"
+  done
+
+  # docs
+  install -Dm 644 ${pkgname}.txt whatsnew.txt -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -Dm 644 examples/elfexe/*.asm -t "${pkgdir}/usr/share/doc/${pkgname}/examples/elfexe"
+  install -Dm 644 examples/elfexe/dynamic/*.asm -t "${pkgdir}/usr/share/doc/${pkgname}/examples/elfexe/dynamic"
+  install -Dm 644 examples/elfexe/dynamic/*.inc -t "${pkgdir}/usr/share/doc/${pkgname}/examples/elfexe/dynamic"
+  install -Dm 644 examples/elfobj/*.asm -t "${pkgdir}/usr/share/doc/${pkgname}/examples/elfobj"
+  install -Dm 644 examples/libcdemo/*.asm -t "${pkgdir}/usr/share/doc/${pkgname}/examples/libcdemo"
+  install -Dm 644 examples/libcdemo/*.inc -t "${pkgdir}/usr/share/doc/${pkgname}/examples/libcdemo"
+  install -Dm 644 license.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+# vim: ts=2 sw=2 et:

Copied: fasm/repos/community-x86_64/PKGBUILD (from rev 215843, fasm/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2017-03-12 17:56:19 UTC (rev 215844)
@@ -0,0 +1,56 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Chris Andrews <christophersimonandrews [at] gmail [dot] com>
+# Contributor: FadeMind <fademind at gmail.com>
+# Contributor: Serge Victor <arch at random.re>
+# Contributor: Krzysztof Wloch <wloszekk [at] gmail [dot] com>
+# Contributor: Luke McCarthy <luke at iogopro.co.uk>
+
+pkgname=fasm
+pkgver=1.71.60
+pkgrel=2
+pkgdesc='Fast and efficient self-assembling x86 assembler for DOS, Windows and Linux operating systems'
+url='https://flatassembler.net/'
+arch=('i686' 'x86_64')
+license=('custom')
+depends_x86_64=('lib32-glibc')
+source=(${pkgname}-${pkgver}.tgz::https://flatassembler.net/${pkgname}-${pkgver}.tgz)
+sha512sums=('6c31fd044a972cb694b84adbb2b18940d9256f12c4ad1acd466b2f9c99c3bc01bfa6daba434e480c7694be5a604809d5f0da8dc41ff09919f0a5f0dda9ad74b3')
+
+build() {
+  cd ${pkgname}
+  CFLAGS+=" -pie"
+
+  # compile fasm with itself
+  ./fasm source/libc/${pkgname}.asm
+  gcc -m32 ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -L/usr/lib32 source/libc/${pkgname}.o -o source/libc/${pkgname}
+
+  # tools
+  local s
+  for s in listing prepsrc symbols; do
+    ./source/libc/${pkgname} tools/libc/${s}.asm ${s}.o
+    gcc -m32 ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -o ${s} ${s}.o
+  done
+}
+
+package() {
+  cd ${pkgname}
+
+  install -Dm 755 source/libc/${pkgname} -t "${pkgdir}/usr/bin"
+  # tools
+  local s
+  for s in listing prepsrc symbols; do
+    install -Dm 755 ${s} "${pkgdir}/usr/bin/${pkgname}-${s}"
+  done
+
+  # docs
+  install -Dm 644 ${pkgname}.txt whatsnew.txt -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -Dm 644 examples/elfexe/*.asm -t "${pkgdir}/usr/share/doc/${pkgname}/examples/elfexe"
+  install -Dm 644 examples/elfexe/dynamic/*.asm -t "${pkgdir}/usr/share/doc/${pkgname}/examples/elfexe/dynamic"
+  install -Dm 644 examples/elfexe/dynamic/*.inc -t "${pkgdir}/usr/share/doc/${pkgname}/examples/elfexe/dynamic"
+  install -Dm 644 examples/elfobj/*.asm -t "${pkgdir}/usr/share/doc/${pkgname}/examples/elfobj"
+  install -Dm 644 examples/libcdemo/*.asm -t "${pkgdir}/usr/share/doc/${pkgname}/examples/libcdemo"
+  install -Dm 644 examples/libcdemo/*.inc -t "${pkgdir}/usr/share/doc/${pkgname}/examples/libcdemo"
+  install -Dm 644 license.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+# vim: ts=2 sw=2 et:


More information about the arch-commits mailing list