diff options
author | Thomas Braby | 2019-06-13 05:01:34 -0700 |
---|---|---|
committer | Thomas Braby | 2019-06-13 05:01:34 -0700 |
commit | b943ffb67e9269a4b404ebc3cf3347dea3868a2a (patch) | |
tree | 8f3b537b75ef16f89741dde199caec04c3113411 | |
download | aur-b943ffb67e9269a4b404ebc3cf3347dea3868a2a.tar.gz |
Created fltk-git package
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 49 |
3 files changed, 75 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..8c48bcd64259 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +pkgbase = fltk-git + pkgdesc = Graphical user interface toolkit for X (Git version) + pkgver = 1.4.0.r8558.aa9f0a696 + pkgrel = 1 + url = http://www.fltk.org/ + arch = x86_64 + license = LGPL + makedepends = git + makedepends = cmake + depends = libjpeg + depends = libpng + depends = zlib + depends = libxinerama + depends = libxft + depends = libxcursor + provides = fltk + conflicts = fltk + source = fltk::git+https://github.com/fltk/fltk.git + sha256sums = SKIP + +pkgname = fltk-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..00f9a942092a --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.pkg.tar.* +pkg +src +fltk diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..832b1a172b40 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,49 @@ +# Maintainer: Thomas Braby <thomas@mykolab.com> + +_pkgbase=fltk +pkgbase=fltk-git +pkgname=fltk-git +pkgver=1.4.0.r8558.aa9f0a696 +pkgrel=1 +pkgdesc='Graphical user interface toolkit for X (Git version)' +arch=('x86_64') +url='http://www.fltk.org/' +license=('LGPL') +depends=('libjpeg' 'libpng' 'zlib' 'libxinerama' 'libxft' 'libxcursor') +makedepends=('git' 'cmake') +provides=('fltk') +conflicts=('fltk') +source=('fltk::git+https://github.com/fltk/fltk.git') +sha256sums=('SKIP') + +pkgver() { + cd "${srcdir}/${_pkgbase}" + + printf '%s.r%s.%s' \ + "$(cat VERSION)" \ + "$(git rev-list --count master)" \ + "$(git log -1 --format='%h')" +} + +build() { + cd "${srcdir}/${_pkgbase}" + + if [[ -d build ]]; then + rm -rf build + fi + mkdir build && cd build + + cmake .. \ + -DCMAKE_INSTALL_PREFIX='/usr' \ + -DCMAKE_INSTALL_LIBDIR='lib' \ + -DCMAKE_BUILD_TYPE='Release' \ + -DOPTION_BUILD_EXAMPLES=0 + + make +} + +package() { + cd "${srcdir}/${_pkgbase}/build" + make DESTDIR="${pkgdir}/" install +} + |