Skip to content
Snippets Groups Projects
Commit cdb17d2b authored by Jan Alexander Steffens (heftig)'s avatar Jan Alexander Steffens (heftig)
Browse files

2.7.0-4: simplify, fix pkgconfig

parent 15c6972c
No related branches found
Tags v35.2
No related merge requests found
......@@ -2,36 +2,34 @@
pkgname=duktape
pkgver=2.7.0
pkgrel=3
pkgrel=4
pkgdesc='Embeddable Javascript engine'
arch=(x86_64)
url='https://duktape.org/'
arch=(x86_64)
license=(MIT)
makedepends=(setconf)
depends=(glibc)
options=(debug)
source=("https://duktape.org/duktape-$pkgver.tar.xz"
duktape.pc)
b2sums=('da5eea88758201177f32c5611a3757433ef1b0173d6430eff1f067abd7535f3e4b9c3717290fbd8475827a53f7a2a74818287a65e563f14e91761f5cd0fe30d5'
'0a2a709ac0630aa47083cd3a54f57bc54ab9cda609d249559140c4cab323e740e3da1aa0bb3c125e16f8d91108912512caccb0ed9234a5583a196082bc7e36dd')
source=("https://duktape.org/$pkgname-$pkgver.tar.xz")
b2sums=('da5eea88758201177f32c5611a3757433ef1b0173d6430eff1f067abd7535f3e4b9c3717290fbd8475827a53f7a2a74818287a65e563f14e91761f5cd0fe30d5')
prepare() {
cd $pkgname-$pkgver
mv Makefile.sharedlibrary Makefile
sed 's/-Wall -Wextra/$(CFLAGS)/g' -i Makefile
setconf Makefile INSTALL_PREFIX "$pkgdir/usr"
setconf "$srcdir/duktape.pc" Version "$pkgver"
}
# https://duktape.org/download.html
md5sums=('b3200b02ab80125b694bae887d7c1ca6')
_make() (
make -f Makefile.sharedlibrary INSTALL_PREFIX=/usr "$@"
)
build() {
CFLAGS="$CFLAGS -D DUK_USE_FASTINT -w" make -C $pkgname-$pkgver
CFLAGS="$CFLAGS -DDUK_USE_FASTINT"
cd $pkgname-$pkgver
_make
}
package() {
install -d "$pkgdir/usr/include"
install -Dm644 duktape.pc "$pkgdir/usr/lib/pkgconfig/duktape.pc"
cd $pkgname-$pkgver
install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
make install
_make DESTDIR="$pkgdir" install
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 LICENSE.txt
}
# getver: github.com/svaarala/duktape
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment