do some more packaging work

master
Drake 2 years ago
parent 6cc6e8d756
commit 2129d6d268

File diff suppressed because it is too large Load Diff

@ -0,0 +1,40 @@
#!/bin/bash
pkgname=(linux-headers)
pkgver=5.18.2
pkgrel=1
pkgdesc='System kernel headers'
arch=(x86_64)
url='http://www.kernel.org'
license=(GPL2)
depends=()
makedepends=(bison flex perl python3)
options=()
source=(
"https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-$pkgver.tar.xz"
Config
)
sha256sums=(
83d14126c660186a7a1774a4a5c29d38e170fa5e52cfd2d08fd344dcf1f57d22
fb5801b7c4f692ac44589ad2f549e1b825a66517fec18e007d4751b2e776ddd5
)
build() {
cd_unpacked_src
sed -i \
-e "/rsync/s@rsync@find usr/include -not -type d -name '*.h' | cpio -dump --quiet \$\(INSTALL_HDR_PATH\); true@" \
-e '/^CC/s@gcc@cc@g' \
-e '/^HOSTCC/s@gcc@cc@g' Makefile
make LLVM=1 LLVM_IAS=1 mrproper
cp "${srcdir}/Config" .config
make LLVM=1 LLVM_IAS=1
}
package() {
groups=(build-base)
cd_unpacked_src
make LLVM=1 LLVM_IAS=1 INSTALL_HDR_PATH=dest HOSTCFLAGS="-D_GNU_SOURCE" headers_install
set -o pipefail
find usr -not -type
}

File diff suppressed because it is too large Load Diff

@ -0,0 +1,45 @@
#!/bin/bash
pkgname=(linux)
pkgver=5.18.2
pkgrel=1
pkgdesc='System kernel'
arch=(x86_64)
url='http://www.kernel.org'
license=(GPL2)
depends=()
makedepends=(bison flex perl python3)
options=()
changelog=ChangeLog
source=(
"https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-$pkgver.tar.xz"
Config
)
sha256sums=(
83d14126c660186a7a1774a4a5c29d38e170fa5e52cfd2d08fd344dcf1f57d22
fb5801b7c4f692ac44589ad2f549e1b825a66517fec18e007d4751b2e776ddd5
)
build() {
cd_unpacked_src
sed -i \
-e "/rsync/s@rsync@find usr/include -not -type d -name '*.h' | cpio -dump --quiet \$\(INSTALL_HDR_PATH\); true@" \
-e '/^CC/s@gcc@cc@g' \
-e '/^HOSTCC/s@gcc@cc@g' Makefile
make LLVM=1 LLVM_IAS=1 mrproper
cp "${srcdir}/Config" .config
make LLVM=1 LLVM_IAS=1
}
package() {
groups=(base)
cd_unpacked_src
make LLVM=1 LLVM_IAS=1 INSTALL_MOD_PATH="$pkgdir" modules_install
install -d "${pkgdir}/boot"
install "arch/${CARCH}/boot/bzImage" "${pkgdir}/boot/vmlinux"
install .config "${pkgdir}/boot/config"
# remove build/source links for now
rm -f "${pkgdir}/lib/modules/${pkgver}/build" \
"${pkgdir}/lib/modules/${pkgver}/source"
}

@ -0,0 +1,28 @@
#!/bin/bash
pkgname=sbase
pkgver=1.11.0
pkgrel=1
pkgdesc="suckless unix tools."
arch=(x86_64)
url="https://git.suckless.org/sbase"
license=(MIT)
groups=()
depends=()
source=(
"${url}/archive/refs/tags/v${pkgver}.tar.gz"
)
sha256sums=(
"3c6ba2e66400fe3f1ae83deb4b235faf3137ec20bd5b08c29bfc368db143e4c6"
)
unpacked_dir="${srcdir}/${pkgname}-${pkgver}"
build() {
}
package() {
}
Loading…
Cancel
Save