Added swc and friends

This commit is contained in:
Ella-0 2021-04-02 16:14:25 +01:00
parent c11f6761d6
commit 5e2dcbb4e5
7 changed files with 163 additions and 0 deletions

25
pkgs/swc/build.sh Normal file
View file

@ -0,0 +1,25 @@
pkgname=swc
pkgver=master
fetch() {
curl -L "https://github.com/michaelforney/swc/archive/refs/heads/master.tar.gz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
cp ../config.mk .
}
build() {
cd $pkgname-$pkgver
cp ../config.mk .
gmake PREFIX=/usr CC=cc
}
package() {
cd $pkgname-$pkgver
gmake install DESTDIR=$pkgdir PREFIX=/usr
}
license() {
cd $pkgname-$pkgver
cat LICENSE
}

5
pkgs/swc/config.mk Normal file
View file

@ -0,0 +1,5 @@
ENABLE_DEBUG = 0
ENABLE_STATIC = 0
ENABLE_SHARED = 1
ENABLE_LIBUDEV = 1
ENABLE_XWAYLAND = 0