diff options
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 41 |
2 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9176ece621ba --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = wlclock-git + pkgdesc = Simple GTKmm/Cairo based clock that works on Wayland + pkgver = r5.bec08da + pkgrel = 1 + url = https://github.com/Depau/wlclock + arch = i686 + arch = x86_64 + license = GPL3 + license = FDL + makedepends = cmake + makedepends = pkgconf + depends = gtkmm3 + provides = wlclock + conflicts = wlclock + source = wlclock::git+https://github.com/Depau/wlclock.git + sha256sums = SKIP + +pkgname = wlclock-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..d4791238542a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Davide Depau <davide@depau.eu> + +_pkgname=wlclock +pkgname=$_pkgname-git +pkgver=r5.bec08da +pkgrel=1 +pkgdesc="Simple GTKmm/Cairo based clock that works on Wayland " +arch=('i686' 'x86_64') +depends=('gtkmm3') +makedepends=('cmake' 'pkgconf') +url="https://github.com/Depau/wlclock" +license=('GPL3' 'FDL') +source=(${_pkgname}::git+https://github.com/Depau/wlclock.git) +sha256sums=('SKIP') +provides=($_pkgname) +conflicts=($_pkgname) + +pkgver() { + cd "${_pkgname}" + ( set -o pipefail + git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +build() { + cd "$srcdir/${_pkgname}" + + mkdir -p build && cd build + + cmake .. \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=/usr/lib \ + -DCMAKE_BUILD_TYPE=Release + make +} + +package() { + cd "$srcdir/${_pkgname}" + make DESTDIR="$pkgdir" install -C build/ +} |