diff options
author | Hyacinthe Cartiaux | 2015-07-23 17:23:12 +0200 |
---|---|---|
committer | Hyacinthe Cartiaux | 2015-07-23 17:23:12 +0200 |
commit | db50e270a3d51d016f3096545518d2c6017349fb (patch) | |
tree | 08b6e60c631f759d02bd670e76e67e43fdcdf6f4 | |
download | aur-db50e270a3d51d016f3096545518d2c6017349fb.tar.gz |
Import from AUR3
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | PKGBUILD | 33 |
3 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..6a672c4b7695 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = lensfun-git + pkgdesc = Library to correct optical lens defects and lens database + pkgver = 0.3.0.r56.ge4a7da7 + pkgrel = 1 + url = http://lensfun.sourceforge.net + arch = i686 + arch = x86_64 + license = LGPL3 + makedepends = python2 + makedepends = libpng + makedepends = cmake + depends = glibc + depends = glib2 + provides = lensfun=0.3.0 + conflicts = lensfun + source = lensfun::git://git.code.sf.net/p/lensfun/code + md5sums = SKIP + +pkgname = lensfun-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..08d23076f030 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +pkg +src +lensfun* diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..1b7c1b3f24d9 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Contributor: zhuqin <zhuqin83@gmail.com> +pkgname=lensfun-git +_gitname=lensfun +pkgver=0.3.0.r56.ge4a7da7 +pkgrel=1 +pkgdesc="Library to correct optical lens defects and lens database" +arch=(i686 x86_64) +url="http://lensfun.sourceforge.net" +license=('LGPL3') +depends=('glibc' 'glib2') +makedepends=('python2' 'libpng' 'cmake') +provides=('lensfun=0.3.0') +conflicts=('lensfun') +source=("lensfun::git://git.code.sf.net/p/lensfun/code") +md5sums=(SKIP) + +pkgver() { + cd $_gitname + git describe --long | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g' +} + +build() { + cd $_gitname + cmake -DLENSFUN_INSTALL_PREFIX=$pkgdir/usr \ + -DCMAKE_BUILD_TYPE=Release \ + . + make +} + +package() { + cd $_gitname + make INSTALL_PREFIX="$pkgdir/" install +} |