upg gc
This commit is contained in:
parent
c13f250844
commit
a8a43cb30f
4 changed files with 45 additions and 27 deletions
33
gc/PKGBUILD
33
gc/PKGBUILD
|
@ -6,37 +6,35 @@
|
|||
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
||||
|
||||
pkgname=gc
|
||||
pkgver=8.2.6
|
||||
pkgrel=01
|
||||
pkgver=8.2.8
|
||||
pkgrel=02
|
||||
pkgdesc="A garbage collector for C and C++"
|
||||
groups=( jobbot )
|
||||
url="https://www.hboehm.info/gc/"
|
||||
depends=('gcc-libs')
|
||||
source=(https://github.com/ivmai/bdwgc/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz
|
||||
https://www.hboehm.info/gc/license.txt)
|
||||
# gc-missing-header.patch::https://patch-diff.githubusercontent.com/raw/ivmai/bdwgc/pull/389.patch)
|
||||
# gc-missing-header.patch::https://github.com/ivmai/bdwgc/commit/c876dc2b.patch)
|
||||
makedepends=(git autoconf automake)
|
||||
source=(gc::git+https://github.com/ivmai/bdwgc.git#tag=v${pkgver}
|
||||
https://www.hboehm.info/gc/license.txt)
|
||||
|
||||
#prepare() {
|
||||
# cd $pkgname-$pkgver
|
||||
# patch -p1 < ../gc-missing-header.patch # Install missing header
|
||||
# ./autogen.sh
|
||||
#}
|
||||
prepare() {
|
||||
cd $pkgname
|
||||
./autogen.sh
|
||||
}
|
||||
|
||||
build() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
cd $pkgname
|
||||
./configure --prefix=/usr --enable-cplusplus --disable-static
|
||||
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
||||
make
|
||||
}
|
||||
|
||||
check() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
cd $pkgname
|
||||
make check
|
||||
}
|
||||
|
||||
package() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
cd $pkgname
|
||||
make DESTDIR="${pkgdir}" install
|
||||
sed 's|GC_MALLOC 1L|gc 3|g' doc/gc.man | install -Dm644 /dev/stdin "${pkgdir}/usr/share/man/man3/gc.3"
|
||||
install -Dm644 ../license.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
|
||||
|
@ -48,7 +46,10 @@ arch=(x86_64)
|
|||
|
||||
license=('LicenseRef-GC' 'MIT')
|
||||
|
||||
sha256sums=(b9183fe49d4c44c7327992f626f8eaa1d8b14de140f243edb1c9dcff7719a7fc # gc-8.2.6.tar.gz
|
||||
sha512sums=('f7bb0debcfeba4ccfb1ec5fd7abdf8615915988718abff9e4498f740e31ce14355d5f2c688ab0b555fbd1e9c8c9901c6e7e61c378cbe8d715869a366201ce2b8'
|
||||
'73b381858db41cb757be67fa00778cb177fa147c892ae1e83d7d31b489c576ffe6c7339b688c41550c896aef1b8af5bfa3e58d1bb9902cc9640a8b837498a9b2')
|
||||
sha256sums=(da45cd95037448b1b65690ad83d33c210a194244092829e172e81fbd1c810f72 # gc 8.2.8
|
||||
d84e4948951c3571fdf05b934db7c94bbee25f594c1901b1baf835589ce5f2dc) # license.txt
|
||||
|
||||
## 0f1748de8aabaf669f50985475c8c88b0c6de07de13c07d06e547bf3f7b922b5 gc-8.2.6-01-x86_64.pkg.tar.lz
|
||||
## 6b00feb35722d6f93bcde021531e44434959110317308ade0eef58d2019b094b gc-8.2.8-02-x86_64.pkg.tar.lz
|
||||
|
||||
|
|
|
@ -2,32 +2,48 @@
|
|||
# Contributor: dorphell <dorphell@gmx.net>
|
||||
|
||||
pkgname=gc
|
||||
pkgver=8.2.6
|
||||
pkgrel=1
|
||||
pkgver=8.2.8
|
||||
pkgrel=2
|
||||
pkgdesc="A garbage collector for C and C++"
|
||||
arch=('x86_64')
|
||||
url="https://www.hboehm.info/gc/"
|
||||
license=('LicenseRef-GC' 'MIT')
|
||||
depends=('gcc-libs')
|
||||
source=(https://github.com/ivmai/bdwgc/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz
|
||||
https://www.hboehm.info/gc/license.txt)
|
||||
sha512sums=('48afcc1d8570d6b5d62addf8b7b947a3836717e71c073f6dff8982744c06f5973a02e890d17e8dd93f7f997d029b49c652929e6efa0e32aefbcdf7ab0910eda5'
|
||||
license=(
|
||||
'LicenseRef-GC'
|
||||
'MIT'
|
||||
)
|
||||
depends=(
|
||||
gcc-libs
|
||||
)
|
||||
makedepends=(
|
||||
git
|
||||
)
|
||||
source=(
|
||||
git+https://github.com/ivmai/bdwgc.git#tag=v${pkgver}
|
||||
https://www.hboehm.info/gc/license.txt
|
||||
)
|
||||
sha512sums=('f7bb0debcfeba4ccfb1ec5fd7abdf8615915988718abff9e4498f740e31ce14355d5f2c688ab0b555fbd1e9c8c9901c6e7e61c378cbe8d715869a366201ce2b8'
|
||||
'73b381858db41cb757be67fa00778cb177fa147c892ae1e83d7d31b489c576ffe6c7339b688c41550c896aef1b8af5bfa3e58d1bb9902cc9640a8b837498a9b2')
|
||||
|
||||
prepare() {
|
||||
cd bdwgc
|
||||
|
||||
./autogen.sh
|
||||
}
|
||||
|
||||
build() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
cd bdwgc
|
||||
./configure --prefix=/usr --enable-cplusplus --disable-static
|
||||
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
||||
make
|
||||
}
|
||||
|
||||
check() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
cd bdwgc
|
||||
make check
|
||||
}
|
||||
|
||||
package() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
cd bdwgc
|
||||
make DESTDIR="${pkgdir}" install
|
||||
sed 's|GC_MALLOC 1L|gc 3|g' doc/gc.man | install -Dm644 /dev/stdin "${pkgdir}/usr/share/man/man3/gc.3"
|
||||
install -Dm644 ../license.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
|
||||
|
|
2
gc/clean
2
gc/clean
|
@ -1 +1 @@
|
|||
rm -rf {src,pkg,gc*.tar.gz,*.patch}
|
||||
rm -rf {src,pkg,gc*.tar.gz,*.patch,gc}
|
||||
|
|
1
gc/deps
1
gc/deps
|
@ -1,3 +1,4 @@
|
|||
git
|
||||
autoconf
|
||||
automake
|
||||
|
||||
|
|
Loading…
Reference in a new issue