#!/usr/bin/env beesh

# BEE_VERSION gpm-1.20.7_p27_1fd1941-0

# more info:
#   https://github.com/telmich/gpm
#   https://www.nico.schottelius.org/software/gpm
#   https://git.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/gpm

# bee download https://github.com/telmich/gpm.git -c 1fd19417b8a4dd9945347e98dfa97e4cfd798d77

SRCURL[0]="/src/mariux/md5repo/53761d1a7b00bc6d063f64f0697d0053/gpm-1.20.7_p27_1fd1941.tar.bz2"

PATCHURL+=("/src/mariux/md5repo/6cc2e7cff1a7eddf5c59dcd480505b06/0001-glibc-sigemptyset.patch")


build_in_sourcedir

# sourcesubdir_append src

#mee_extract() {
#    bee_extract "${@}"
#}

#mee_patch() {
#    bee_patch "${@}"
#}

mee_patch_post() {
    ./autogen.sh
}

#mee_configure() {
#    bee_configure
#}

#mee_build() {
#    bee_build
#}

#mee_install() {
#    bee_install
#}

mee_install_post() {
    rm -vrf ${D}/usr/share/emacs
    ln -vs libgpm.so.2.1.0 ${D}${LIBDIR}/libgpm.so
}