summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChocobo12017-12-25 14:14:13 +0800
committerChocobo12019-02-05 15:37:38 +0800
commit6ba35d5ab4a513a3142554cde673f75b2efeff4e (patch)
treebd6c119e9d21783749251d99779a618713595916
downloadaur-6ba35d5ab4a513a3142554cde673f75b2efeff4e.tar.gz
newpkg: libcdio-git 2.0.0.r53.g1be3d348-1
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD49
2 files changed, 69 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..91d84d97666
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = libcdio-git
+ pkgdesc = Library for CD-ROM and CD image access
+ pkgver = 2.0.0.r53.g1be3d348
+ pkgrel = 1
+ url = https://www.gnu.org/software/libcdio/
+ arch = i686
+ arch = x86_64
+ license = GPL3
+ makedepends = git
+ makedepends = help2man
+ depends = glibc
+ depends = libcddb
+ provides = libcdio
+ conflicts = libcdio
+ options = staticlibs
+ source = git+https://git.savannah.gnu.org/git/libcdio.git
+ sha256sums = SKIP
+
+pkgname = libcdio-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..66a5f38b325
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,49 @@
+# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
+
+pkgname=libcdio-git
+pkgver=2.0.0.r53.g1be3d348
+pkgrel=1
+pkgdesc="Library for CD-ROM and CD image access"
+arch=('i686' 'x86_64')
+url="https://www.gnu.org/software/libcdio/"
+license=('GPL3')
+depends=('glibc' 'libcddb')
+makedepends=('git' 'help2man')
+provides=('libcdio')
+conflicts=('libcdio')
+options=('staticlibs')
+source=("git+https://git.savannah.gnu.org/git/libcdio.git")
+sha256sums=('SKIP')
+
+
+pkgver() {
+ cd "libcdio"
+
+ git describe --long --tags | sed 's/^release-//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "libcdio"
+
+ autoreconf -fi
+ ./configure \
+ --prefix="/usr" \
+ --enable-maintainer-mode \
+ --disable-example-progs
+ make
+}
+
+check() {
+ cd "libcdio"
+
+ make check
+}
+
+package() {
+ cd "libcdio"
+
+ make DESTDIR="$pkgdir" install
+
+ sed -i "/LIBCDIO_SOURCE_PATH/s|.*|/* #undef LIBCDIO_SOURCE_PATH */|" \
+ "$pkgdir/usr/include/cdio/cdio_config.h"
+}