Overview
Comment: | add Arch Build System build script |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
c231d33808b3e977c9e4ea4cb17c9e43 |
User & Date: | lexi on 2020-03-04 00:03:34 |
Other Links: | manifest | tags |
Context
2020-03-04
| ||
06:59 | update install script check-in: 0a42ee4e26 user: lexi tags: trunk | |
00:03 | add Arch Build System build script check-in: c231d33808 user: lexi tags: trunk | |
2020-03-03
| ||
18:10 | add target display check-in: ebe506a75e user: lexi tags: trunk | |
Changes
Added dist/PKGBUILD version [7b18c1e325].
1 +pkgname=libk 2 +pkgver=live 3 +pkgrel=1 4 +pkgdesc='a modern base library for C to replace libc' 5 +url='https://c.comint.su/libk' 6 +license=(AGPL) 7 +source=('https://c.comint.su/libk/tarball/trunk/libk.tar.gz') 8 +md5sums=(SKIP) 9 +arch=(i686 x86_64 aarch64 armv7l) 10 +depends=() 11 +makedepends=(binutils bash yasm) 12 + 13 +build() { 14 + export os=lin library=both 15 + case $(uname -m) in 16 + # i have no idea why, but the "arch" environment variable name 17 + # appears tainted somehow, and gets blanked between here and 18 + # the call to the build script. ugly hack but it works 19 + i386|i686) kind=x86; export bits=32;; 20 + x86_64) kind=x86; export bits=64;; 21 + armv7l) kind=arm; export bits=32;; 22 + aarch64) kind=arm; export bits=64;; 23 + 24 + *) echo "(error) your architecture is currently not supported by the libk project" 25 + return 1;; 26 + esac 27 + if pacman -T cmark; then 28 + export doc=yes 29 + else 30 + echo "(warning) cmark not installed; docs will not be built" 31 + export doc=no 32 + fi 33 + 34 + cd "$srcdir/libk" 35 + arch=$kind ./build.sh 36 +} 37 + 38 +package() { 39 + if test "$doc" = yes; then 40 + install -D "$srcdir/$pkgname/out/doc/html/"* -t "$pkgdir/usr/share/doc/libk/pdf/" 41 + install -D "$srcdir/$pkgname/out/doc/pdf/"* -t "$pkgdir/usr/share/doc/libk/html/" 42 + install -D "$srcdir/$pkgname/out/doc/man/"* -t "$pkgdir/usr/share/man/man3/" 43 + fi 44 + 45 + install -D "$srcdir/$pkgname"/out/{libk.{so,a},kboot.o} -t "$pkgdir/usr/lib/" 46 + install -D "$srcdir/$pkgname/out/k/"* -t "$pkgdir/usr/include/k/" 47 +}