add yasm
This commit is contained in:
parent
b859e777d0
commit
513d7d5ceb
1 changed files with 32 additions and 0 deletions
32
extra/yasm/build.sh
Normal file
32
extra/yasm/build.sh
Normal file
|
@ -0,0 +1,32 @@
|
|||
pkgname=yasm
|
||||
pkgver=1.3.0
|
||||
|
||||
fetch() {
|
||||
curl -L "https://github.com/yasm/yasm/releases/download/v$pkgver/yasm-$pkgver.tar.gz" -o $pkgname-$pkgver.tar.xz
|
||||
tar -xf $pkgname-$pkgver.tar.xz
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
# --build=$TRIPLE \
|
||||
# --host=$TRIPLE
|
||||
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
make install DESTDIR=$pkgdir
|
||||
}
|
||||
|
||||
backup() {
|
||||
return
|
||||
}
|
||||
|
||||
license() {
|
||||
cd $pkgname-$pkgver
|
||||
cat COPYING
|
||||
}
|
Loading…
Reference in a new issue