description="An implementation of the XDG Base Directory specifications."
url="https://github.com/devnev/libxdg-basedir"

packager="spiky <spiky@nutyx.org>"

makedepends=(autoconf automake libtool sed grep)
name=libxdg-basedir
version=1.2.3

source=(https://github.com/devnev/$name/archive/$name-$version.tar.gz)

build() {

cd $name-$name-$version
sed -i "577 s/fallbacklength/fallbacklength+1/" src/basedir.c
./autogen.sh
./configure --prefix=/usr
make
make DESTDIR=$PKG install
}
