makedeb
C library for finding platform-specific dirs
Viewing /PKGBUILD
.
Click here to go back to the Git tree for appdir-git.
# Maintainer : MorsMortium <morsmortium@gmail.com>
pkgname=appdir-git
pkgver=0.1.0.r4.g9ce90c1
pkgrel=2
url="https://github.com/Forty-Bot/appdir"
pkgdesc="C library for finding platform-specific dirs"
arch=('any')
provides=('appdir')
conflicts=('appdir')
license=('LGPL3')
makedepends=('gcc' 'make' 'cmake' 'libxdg-basedir-dev')
depends=('libxdg-basedir1')
source=("${pkgname}::git+https://github.com/Forty-Bot/appdir")
sha512sums=('SKIP')
pkgver(){
cd "$pkgname"
git describe --long --tags | sed 's/-/.r/;s/-/./'
}
package() {
cd "$pkgname"
mkdir build
cd build
cmake ..
make
install -Dm 644 libappdir.so ${pkgdir}/usr/lib/libappdir.so
install -Dm 644 ../include/appdir.h ${pkgdir}/usr/include/appdir/appdir.h
install -Dm 644 include/appdir_export.h ${pkgdir}/usr/include/appdir/appdir_export.h
}