Skip to content

Instantly share code, notes, and snippets.

@Rahix
Last active January 10, 2018 20:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Rahix/72f13d5d7f534e35a3006a846651221d to your computer and use it in GitHub Desktop.
Save Rahix/72f13d5d7f534e35a3006a846651221d to your computer and use it in GitHub Desktop.
gdk-pixbuf-vtf PKGBUILD
pkgname=gdk-pixbuf-vtf
pkgver=2.1
pkgrel=1
pkgdesc="VTF GDK Pixbuf Loader library"
url="https://github.com/linux-source-tools/gdk-pixbuf-vtf"
arch=(x86_64)
license=(unknown)
depends=(gdk-pixbuf2)
makedepends=(cmake)
_commit=7fb2f837bd54af9296f43573877895d7e90b95fe
source=("git+https://github.com/linux-source-tools/gdk-pixbuf-vtf.git#commit=$_commit")
sha256sums=('SKIP')
pkgver() {
cd $pkgname
git describe --tags | sed 's/-/+/g'
}
build() {
cd "$pkgname"
mkdir -p build && cd build
cmake -DCMAKE_INSTALL_PREFIX:STRING=/usr ..
make pixbufloader-vtf
}
package() {
cd "$pkgname"/build
make DESTDIR="$pkgdir/" install/fast
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment