You are not logged in.
whats wrong with this.
libtap.a does not get copied in package()
do i have to mkdir -p all dirs first? if soo, that did fail to cp the libtap.a too.
but install does auto mkdir -p doesnt it?
pkgname=tap
pkgver=r88.1796a0d
pkgrel=1
pkgdesc='A C library for writing unit tests conforming to TAP'
arch=(i686 x86_64)
url="https://github.com/zorgnax/libtap"
license='GPLv2'
depends=()
makedepends=('git')
source=("git+https://github.com/zorgnax/libtap.git")
md5sums=('SKIP')
_gitname="libtap"
pkgver() {
cd "$srcdir/$_gitname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/$_gitname"
make
}
package() {
cd "$srcdir/$_gitname"
install -Dm755 libtap.a "$pkgdir/usr/lib/libtap.a"
install -Dm755 tap.h "$pkgdir/usr/include/tap.h"
}Last edited by shadow23 (2014-05-15 11:38:13)
Offline
If you want static libraries in your package, you have to tell makepkg to leave them in (the default is to remove them). Read 'man makepkg.conf' and 'man PKGBUILD' for details.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline