smlinux/base/libptytty/libptytty.SMBuild

38 lines
831 B
Text

# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libptytty
version=2.0
build=1sml
homepage="https://github.com/thom311/libnl"
desc="Part of rxvt-unicode for handling pty, tty and related files"
requires="musl"
prepbuilddir() {
mkandenterbuilddir
rm -rf $app-$version
tar xf $srcdir/$app-$version.tar.?z*
cd $app-$version
fixbuilddirpermissions
}
build() {
mkdir -p smbuild && cd smbuild
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_INSTALL_LIBDIR=lib \
-DUTMP_SUPPORT=OFF \
-DWTMP_SUPPORT=OFF \
-DLASTLOG_SUPPORT=OFF
make
make install DESTDIR=$pkg
cp ../COPYING $pkgdocs/
mkfinalpkg
}
sha512sums="
03933f25772bbf433806576054788e0f9caad2074cd955e763bee39d8459d30ccd733868e48ca5f0e92d91f4a07a1487292326c396968f361e51dcdab6bcaeff libptytty-2.0.tar.lz
"