diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..6e1617e1c8ab --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,45 @@ +# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net> + +pkgname=yasm-git +pkgver=1.3.0.r30.g6caf1518 +pkgrel=1 +pkgdesc="A complete rewrite of the NASM assembler under the BSD License" +arch=('i686' 'x86_64') +url="http://yasm.tortall.net/" +license=('BSD') +depends=('glibc') +makedepends=('git') +provides=('yasm') +conflicts=('yasm') +source=("git+https://github.com/yasm/yasm.git") +sha256sums=('SKIP') + + +pkgver() { + cd "yasm" + + git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd "yasm" + + ./autogen.sh + ./configure --prefix="/usr" + make +} + +check() { + cd "yasm" + + #make check +} + +package() { + cd "yasm" + + make DESTDIR="$pkgdir" install + + install -Dm644 "COPYING" "$pkgdir/usr/share/licenses/yasm/COPYING" + install -Dm644 "BSD.txt" "$pkgdir/usr/share/licenses/yasm/BSD.txt" +} |